xsl-list
[Top] [All Lists]

Re: Syntax Problem

2003-03-18 05:39:36

<xsl:copy-of select="document($v_file)//$v_Tag"/>

That syntax is correct so long as $v_Tag contains a node set but it is
the same as

<xsl:copy-of select="$v_Tag"/>

and would just copy the node set in the variable,

If $v_Tag contains a string then it is not correct as it would be the
same as


<xsl:copy-of select="document($v_file)//'abc'"/>

which would not be valid XPath.

David




________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>