Subject: Re: [xsl] Inconsistency in descendant:: expressions? From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Sun, 04 Aug 2013 11:05:29 +0200 |
I'm using Oxygen 15.0 with Saxon PE 9.5.0.2 XSLT 2.
My XSLT is rusty, and I was struggling with the expression of particular descendant expression. After a number of botched attempts, I cam up with two versions that seemed to work. (Yes, I will use the ancestor:: axis, but I want to know what is happening here.)
The following code operates on an xhtml document.
1) <xsl:variable name="table-node" select="//*:table[//*:tr[count(*:td) = 3]][1]"/>
2) <xsl:variable name="table-ancestors" select="//*[descendant::node()=$table-node]"/>
3) <xsl:variable name="table-parents" select="//*[descendant::node()[. is $table-node]]"/>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Inconsistency in descendant::, Peter West | Thread | Re: [xsl] Inconsistency in descenda, Peter West |
[xsl] Inconsistency in descendant::, Peter West | Date | Re: [xsl] Inconsistency in descenda, Peter West |
Month |