[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
On 08/06/2010 23:52, Imsieke, Gerrit, le-tex wrote:
you don't need to compare id strings in xpath2 as you can use is
which is a long way of writing
<xsl:template match="article-title/descendant::text()[last()]"/>
except you can't use descendant axis in a pattern: grrr
except the plan is you can in xslt 2.1: yay!
http://www.w3.org/TR/2010/WD-xslt-21-20100511/Overview-diff.html#NT-PatternAxis
except there are too many changes to call this 2.1, should be 1.0, 5th edition: booo
http://www.w3.org/Bugs/Public/show_bug.cgi?id=9715
David
Re: [xsl] using normalize-space with mixed element content
Subject: Re: [xsl] using normalize-space with mixed element content From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 09 Jun 2010 00:10:53 +0100 |
On 08/06/2010 23:52, Imsieke, Gerrit, le-tex wrote:
If you want to treat the first / last text nodes of article-title, no matter how deep they are nested in other elements:
<xsl:template match="article-title//text()[ generate-id() eq ( for $t in ancestor::article-title//text() return generate-id($t) )[last()] ]"
you don't need to compare id strings in xpath2 as you can use is
<xsl:template match="article-title//text()[ . is(ancestor::article-title//text())[last()] ]"
which is a long way of writing
<xsl:template match="article-title/descendant::text()[last()]"/>
except you can't use descendant axis in a pattern: grrr
except the plan is you can in xslt 2.1: yay!
http://www.w3.org/TR/2010/WD-xslt-21-20100511/Overview-diff.html#NT-PatternAxis
except there are too many changes to call this 2.1, should be 1.0, 5th edition: booo
http://www.w3.org/Bugs/Public/show_bug.cgi?id=9715
David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] using normalize-space wit, Imsieke, Gerrit, le- | Thread | Re: [xsl] using normalize-space wit, David Carlisle |
Re: [xsl] using normalize-space wit, Imsieke, Gerrit, le- | Date | [xsl] using normalize-space with mi, Lynn Murdock |
Month |
Keywords