|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Acces nodes [help]
Hi Ana,
You cannot have an element whose name is a number.
QName has to start with a letter or an underscore.
> And in a xml file i could find <find-list> word1</find-list>. The
> number of the list(1,2,..) is save in a param of the xslt file.
> In this example i had to obtain house or cat(it depends of the param
> value). I try it with the follow sentence but it doesn't run:
> document('../list.xml')//*[name()=current()/.]/*[name()=$number]/.
> What's fail?
If you are going to get a lot of elements from the list.xml file, I
would recommend using a variable to hold the document:
<xsl:variable name="listfile" select="document('../list.xml')"/>
Regards,
Ragulf Pickaxe :-)
|
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


![Re: Acces nodes [help]](/images/get_stylus.gif)





