[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] grouping of processing instruction
Subject: Re: [xsl] grouping of processing instruction From: "Dimitre Novatchev dnovatchev@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 26 Sep 2014 06:25:13 -0000 |
Just a few remarks on this solution: On Thu, Sep 25, 2014 at 10:41 PM, Dimitre Novatchev <dnovatchev@xxxxxxxxx> wrote: > On Thu, Sep 25, 2014 at 9:51 PM, Joga Singh Rawat > jrawat@xxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: >> <?xml-start?>anything including tags<?xml-end?> > > Something like this: > > <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > <xsl:output omit-xml-declaration="yes" indent="yes"/> > > <xsl:template match="/"> > <xsl:for-each-group select= > "(following::processing-instruction() > | descendant::processing-instruction() > )[name()='pi-start']" > group-starting-with="processing-instruction()[name()='pi-start']"> 1. The above can be simplified because a document node's following:: axis is the empty nodeset: <xsl:for-each-group select= "descendant::processing-instruction() [name()='pi-start']" group-starting-with="processing-instruction()[name()='pi-start']"> 2. We take the assumptions that the pairs of "start", "end" PIs are non-overlapping. Cheers, Dimitre
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] grouping of processing in, Dimitre Novatchev dn | Thread | Re: [xsl] grouping of processing in, Michael Kay mike@xxx |
Re: [xsl] grouping of processing in, Dimitre Novatchev dn | Date | Re: [xsl] grouping of processing in, Michael Kay mike@xxx |
Month |