|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Current Node when referenceing $Variable_as_node
Hi,
Little confused about this one. I have a variable declared within template
that results in a xml tree. The select is like this:
<xsl:variable name="xmTmpl">
<xsl:value-of select="$DocTemplates//TMPLT[@docid='1234']/>"
</xsl:variable>
Resulting tree should look like:
<TMPLT docid='1234' name='my doc'>
<T/>
<T/>
<T/>
<T/>
....
</TMPLT>
Okay, so I have "xmTmpl". How do I perform a lookup of the top level name
attribute?
<xsl:value-of select="$xmTmpl//@name"/> ??? (double / after var)
-or-
<xsl:value-of select="$xmTmpl/@name"/> ??? (single / after var)
Karl
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








