Rookie fejl mht absolut sti til node
HejDet er vist en rookie fejl jeg har.....jeg får ikke rigtigt nogen data retur under "<xsl:template match="com:InvoiceLine">"
Stien er ellers korrekt, men nok skrevet forkert.......
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:main="http://rep.oio.dk/ubl/xml/schemas/0p71/maindoc/"
xmlns:com="http://rep.oio.dk/ubl/xml/schemas/0p71/common/"
xmlns:pie="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/"
xmlns:tpcm="http://rep.oio.dk/ubl/xml/schemas/0p71/testpcm/"
xmlns:tpie="http://rep.oio.dk/ubl/xml/schemas/0p71/testpie/"
xmlns:pcm="http://rep.oio.dk/ubl/xml/schemas/0p71/pcm/"
>
<xsl:output method="text" encoding="utf-8" indent="yes"/>
<xsl:template match="/">
<xsl:apply-templates select="/*[local-name()='Invoice']"/>
</xsl:template>
<xsl:template match="pie:Invoice|pcm:Invoice|tpcm:Invoice|pie:Invoice">
<xsl:text>H01</xsl:text>
<xsl:apply-templates select="com:TypeCode"/>
<xsl:apply-templates select="com:ID"/>
<xsl:apply-templates select="//com:BuyerParty[1]/com:AccountCode"/>
<xsl:apply-templates select="com:IssueDate"/>
<xsl:text>
</xsl:text>
<xsl:apply-templates select="com:InvoiceLine"/>
<xsl:apply-templates select="com:LegalTotals"/>
</xsl:template>
<xsl:template match="com:InvoiceLine">
<xsl:text>L01</xsl:text>
<!-- VarenummerArt-->
<xsl:variable name="varenummerart"><xsl:value-of select="/com:InvoiceLine/com:Item/com:SellersItemIdentification"/></xsl:variable>
<xsl:value-of select="format-number($varenummerart,'00')" />
<!-- Varenummer -->
<xsl:variable name="varenummer"><xsl:value-of select="/com:InvoiceLine/com:ReferencedOrderLine/Item/com:ID"/></xsl:variable>
<xsl:value-of select="substring(concat($varenummer, ' '), 1, 20)" />
<xsl:text>
</xsl:text>
</xsl:template>