Hi all,
I'm fairly new to XML and XPath. I was wondering if someone could help me in understanding the following line of code and what element(s) it is pointing to:

<xsl:variable name="EmpPos" select="count(preceding-sibling::Employment)+1"/>

Any help is greatly appreciated.

Re: XPath expression (I'm sure it's simple) 80 80

http://zvon.org/xxl/XPathTutorial/Output/example16.html

<xsl:variable name="EmpPos" select="count(preceding-sibling::Employment)+1"/>

all previous nodes [preceding-sibling::Employment] are counted and their own value [+1] to and store in variable EmpPOS

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.