Subject: RE: [xsl] using only xpath string to count list items From: "Arun Sinha" <arunsinha666@xxxxxxxxxxx> Date: Fri, 19 Nov 2004 04:32:51 +0000 |
Hello,
I am working with a styling tool where I am only using an xpath string to generate text. I have the following xml where I want to know the l1items in a task. So if I am at the first l1item in the first subtask I can get back a count of two. I have been trying to use something along the lines of
count(./preceding::l1item[./ancestor::task])+1
but don't know how to get to the current l1item node and figure out where it is located in the task. The tool doesn't support current() so any help doing this with an XPath string would be great.
I am not sure whether it is going to help you or not. But give it a go and see this what you want.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] using only xpath string to co, Deb Harding | Thread | Re: [xsl] Cool: Saxon driving a GUI, JBryant |
[xsl] Sorting and Paging in one pas, Kyle Himmerick | Date | RE: [xsl] doc() concat expression a, Michael Kay |
Month |