Subject: Re: [xsl] Need XPath 2.0 expression which returns a non-empty paragraph element that is preceded by a long uninterrupted series of empty paragraph elements From: "Peter Flynn peter@xxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Mon, 25 Nov 2019 20:07:50 -0000 |
On 25/11/2019 19:39, Costello, Roger L. costello@xxxxxxxxx wrote: [snip]
That is, my XPath query does not account for the requirement that the long series of paragraph elements be uninterrupted. How to writepreceding-sibling() count *any* preceding sibling, not contiguous preceding siblings
an XPath 2.0 query for this?
count(preceding-sibling::p[.!=' '][1] /following-sibling::p[.=' '])
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Need XPath 2.0 expression, Kevin Brown kevin.br | Thread | Re: [xsl] Need XPath 2.0 expression, Dimitre Novatchev dn |
Re: [xsl] Need XPath 2.0 expression, Kevin Brown kevin.br | Date | Re: [xsl] Need XPath 2.0 expression, Dimitre Novatchev dn |
Month |