Hi,
Below is some XSLT I'm using in Sharepoint 2010/Nintex Workflow to put together data held an in Infopath XML file. It's presently not returning anything; I know I must be close because I have it working else... I'm guessing it's something wrong in the template"match" fields.
In my XML data, there is a 'repeating table' @
/my:myFields/my:CargoItemsSection
....and i want the rows therein formatted out into HTML as I have in the code below. Can someone pls point out where my brain has gone wrong? :(
<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2012-12-05T14:55:38"
exclude-result-prefixes="my"><xsl:output method="html" indent="yes"/><xsl:template match="/"><xsl:apply-templates select="my:myFields"/></xsl:template><xsl:template match="my:myFields"><table border="1" cellpadding="1"><tr bgcolor="skyblue"><th>Equ</th><th>#Items</th><th>Commodity</th><th>Dimensions</th><th>Weight</th><th>CENSPC Action</th><th>Quote Type</th><th>Quote</th><th>QM Ref</th><th>QM Text</th></tr><xsl:apply-templates select="my:CargoItemsSection"/> </table></xsl:template><xsl:template match="my:CargoItemsSection"><tr align="center"><td><xsl:value-of select="my:Equipment-Size" /><xsl:value-of select="my:Equipment-Type" /></td><td><xsl:value-of select="my:NumberOfContainers" /></td><td><xsl:value-of select="my:CommodityName" /></td><td>L:<xsl:value-of select="my:Length" />,W:<xsl:value-of select="my:Width" />,H:<xsl:value-of select="my:Height" /></td><td><xsl:value-of select="my:Weight" /></td><td><xsl:value-of select="my:AcceptedOrRejected" /></td><td><xsl:value-of select="my:QuoteAmountType" /></td><td><xsl:value-of select="my:QuoteAmount" /> <xsl:value-of select="my:Currency" /></td><td><xsl:value-of select="my:QMReferenceNumber" /></td><td><xsl:value-of select="my:QuoteText" /></td></tr></xsl:template></xsl:stylesheet>