N
Norman Barker
Hi,
I have the following template
<xsl:template match="midas:Request">
<xsl:variable name="var1"
select="string(./midasataDescriptorGUID/@GUID)"/>
<test>
<result1><xsl:copy-of
select="$OGC_Type[string(midasataDescriptorGUID/@GUID) =
@guid]"/></result1>
<result2><xsl:copy-of select="$OGC_Type[$var1 =
@guid]"/></result2>
</test>
</xsl:template>
result2 works fine, and I see the XML fragment, yet result1 is
empty!
Am I missing a trick, result2 should be the same as result1.
Unfortunately in the stylesheet I can't pre-declare the variable
since I want to use it in a key.
Thanks
Norman
I have the following template
<xsl:template match="midas:Request">
<xsl:variable name="var1"
select="string(./midasataDescriptorGUID/@GUID)"/>
<test>
<result1><xsl:copy-of
select="$OGC_Type[string(midasataDescriptorGUID/@GUID) =
@guid]"/></result1>
<result2><xsl:copy-of select="$OGC_Type[$var1 =
@guid]"/></result2>
</test>
</xsl:template>
result2 works fine, and I see the XML fragment, yet result1 is
empty!
Am I missing a trick, result2 should be the same as result1.
Unfortunately in the stylesheet I can't pre-declare the variable
since I want to use it in a key.
Thanks
Norman