Subject: Re: [xsl] XPath expression to express: There must be an empty sequence From: "David Carlisle d.p.carlisle@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sun, 19 Nov 2017 18:49:23 -0000 |
sequence[not(item)] Assume that the root element, <sequences>, is the context node. Is that the right way to express the rule? It's Ok, arguably sequence[empty(item)] is more direct (as it relies less on the implicit boolean value of a list of items) but it's same thing really (I tend to use not() as empty() is a newfangled xpath2 addition) every $element in $set//element satisfies exists(sequence[(item = $element) and not(item[2])]) looks OK to me, an alternative might be not($set/element[not(.=current()/sequence[not(item[2])]/item)]) which is also xslt1 1 again as it happens. David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XPath expression to express: , Costello, Roger L. c | Thread | Re: [xsl] XPath expression to expre, Christoph Naber pent |
[xsl] XPath expression to express: , Costello, Roger L. c | Date | Re: [xsl] XPath expression to expre, Christoph Naber pent |
Month |