Norman Barker
Usenet Archive
- Joined
- Jun 25, 2004
- Messages
- 5
- Reaction score
- 0
Hi,
I have the following template
<xsl:template match="midas:Request">
<xsl:variable name="var1"
select="string(./midas
ataDescriptorGUID/@GUID)"/>
<test>
<result1><xsl:copy-of
select="$OGC_Type[string(midas
ataDescriptorGUID/@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(./midas
<test>
<result1><xsl:copy-of
select="$OGC_Type[string(midas
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