Hi all,
I dont know anything behind this apart from... this is an xslt file, and the following code isnt working properly.
I believe the part that is wrong is '[contains($code, code)]'. The code looks up a value in another xml document to return a code.
ie
Value Code
S10E 755
S10 756
If I pass the code S10 to the xslt file, it is returning 755. Its not doing an exact match, more like a 'like' lookup.
Any ideas?
I dont know anything behind this apart from... this is an xslt file, and the following code isnt working properly.
Code:
- <xsl:template name="lookupBarg">
<xsl:param name="code" />
<xsl:variable name="containment" select="document('../../masterdata/barg.xml')" />
- <xsl:choose>
- <xsl:when test="$code">
<xsl:value-of select="$containment/CLEAR/BARG[contains($code, code)]/nummer" />
I believe the part that is wrong is '[contains($code, code)]'. The code looks up a value in another xml document to return a code.
ie
Value Code
S10E 755
S10 756
If I pass the code S10 to the xslt file, it is returning 755. Its not doing an exact match, more like a 'like' lookup.
Any ideas?