Subject: RE: [xsl] Key to select all same nodes(same @id) except current node From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Wed, 7 Mar 2007 19:36:34 -0000 |
> Could you please tell me what is wrong in xpath > "ancestor::$parentvar[2]" . It gives error saying it is not a > valid xpath. Well, that's what's wrong with it - it isn't a valid XPath. You made up the syntax, and I've no idea what you thought it might mean. The thing after the "::" should be a node test, which says what kind of nodes you want to select, e.g. "foo" to select foo elements, or "*" to select all elements. Perhaps you meant $parentvar/ancestor::*[2]? I've no idea, I can only guess. Michael Kay http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Key to select all same no, Tech Guru | Thread | Re: [xsl] Key to select all same no, Tech Guru |
Re: [xsl] Key to select all same no, Tech Guru | Date | Re: [xsl] Key to select all same no, Tech Guru |
Month |