[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] grouping of processing instruction

Subject: Re: [xsl] grouping of processing instruction
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 26 Sep 2014 08:10:40 -0000

This is one of those cases where we really need to know what the set of
possible inputs is; this can't be inferred from one example.

For example, which of the following need to be handled?

> 1. <?xml-start?>anything <a>including</a> tags<?xml-end?>
> 2. <?xml-start?>anything excluding tags<?xml-end?> and <?xml-start?>anything
<a>including</a> tags<?xml-end?>
> 3. <?xml-start?>anything<?xml-start?>nested<?xml-end?> in tags<?xml-end?>
> 4. <a><?xml-start?>anything </a> overlapping regular markup<?xml-end?>
> 5. <?xml-start?>anything else <?yml-start?>that is<?xml-end?> overlapping in

So-called milestone tags are used in many different ways.

Incidentally, using "xml" at the start of a processing-instruction name is
poor practice: W3C reserves such names for future standardisation.

Michael Kay
+44 (0) 118 946 5893

On 26 Sep 2014, at 05:51, Joga Singh Rawat jrawat@xxxxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> Hi Everybody,
> Can anyone give me any clue about handling of below input. I am using
> xsl2.0.
> Input
> <?xml-start?>anything including tags<?xml-end?>
> Output:
> <span class="start">anything including tags</span>
> Thanks in advance, hope for prompt reply.
> Thanks
> .JSR

Current Thread