|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Using count() with a param?
count(//*[name()=$nodeName])
Regards, Joerg Dean Saxe wrote: I am attempting to write a stylesheet which will be used to count the number of nodes in a document. However, I need to be able to pass the nodes which I want to be counted in to the stylesheet as a parameter ($nodeName). Obviously, I cannot use count($nodeName), since the parameter is text and not a node set. I have also attempted to use count(*[name()=$nodeName]), however, this always results in a count of zero, since I need to specify the fully qualified name of the node (e.g. /Report/Body/Table/Record and not just Record). 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








