- From: Julian Reschke <julian.reschke@gmx.de>
- Date: Tue, 18 Jul 2000 09:56:05 +0200
- To: "Martin Bryan" <mtbryan@sgml.u-net.com>, "Jonathan Marsh" <jmarsh@microsoft.com>, <www-xml-xinclude-comments@w3.org>
> From: www-xml-xinclude-comments-request@w3.org > [mailto:www-xml-xinclude-comments-request@w3.org]On Behalf Of Martin > Bryan > Sent: Tuesday, July 18, 2000 8:59 AM > To: Jonathan Marsh; www-xml-xinclude-comments@w3.org > Subject: Re: What happens to embedded stylesheets > > > Jonathon > > > > Note that I don't have a good answer for you about what this means. The > > stylesheet pi rec states: "The xml-stylesheet processing instruction is > > allowed only in the prolog of an XML document." So I would expect the > > nested pis to either generate an error or be ignored, but only > when being > > interpreted by a browser. This is not an XML nor inclusion error. > > Thanks for your response. This is the bit that is important. I'd > forgotten this "minor factor" and I suspect others will have too. > The question, therefore, becomes "Should xml-stylesheet PIs be > stripped from included trees as they are never valid inside > another element?" No. Because 1) an XInclude processor is not supposed to know about specifics of certain PIs, 2) you might actually want to do something with the PI later -- maybe you use Xinclude to put something into a container tag, and later it gets extracted into a standalone XML document again. Then you certainly want to preserve the PI. Julian
Received on Tuesday, 18 July 2000 03:56:35 UTC