OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   XInclude [was: XLink transformations]

[ Lists Home | Date Index | Thread Index ]
  • From: Paul Grosso <pgrosso@arbortext.com>
  • To: xml-dev@xml.org
  • Date: Thu, 20 Jul 2000 10:03:32 -0500

At 00:17 2000 07 20 -0700, Ben Trafford wrote:
>Therefore, my initial take on the issue stands, unless XInclude is 
>modified to preclude the passing of prolog information. In my opinion, this 
>would be a mistake. The prolog contains useful information, including the 
>stylesheet PI. It seems to me that it would behoove the XML Core WG to 
>consider the merging of information found in the prolog in a compatible way.

We've considered and rejected it as out of scope.

>In other words, the stylesheet call is valid, according to 
>infosets and XInclude. The real question is: how to handle it, since 
>multiple stylesheet calls are quite valid in XSL. The only invalid part is 
>placing the stylesheet PI outside of the prolog.

XInclude [1] isn't about style semantics, it's more analogous to XML 1.0
external parsed entity handling.

All information in the included bit is included at the including point
(if that sounds tautological, it's supposed to).  This includes PIs.
A stylesheet PI is just a PI to any XML 1.0 processor and/or any
XInclude-compliant processor.  XInclude won't do anything special
with it.  What happens at the application level when a stylesheet PI
is found in the middle of an infoset (instead of in the prolog) is
outside the scope of XInclude.

The "Associating Style Sheets with XML documents" Rec [1] says:

  The xml-stylesheet processing instruction is allowed only in
  the prolog of an XML document. 

While it doesn't explicitly say what should happen when a PI that
looks like an xml-stylesheet processing instruction occurs elsewhere
than in the prolog, I would assume an application is free to treat
it as either an error or simply to ignore it.


[1] http://www.w3.org/TR/xinclude
[2] http://www.w3.org/TR/xml-stylesheet/

p.s.  Note that the XML Core WG has just recently (17-July-2000) 
published a new WD of XInclude, available for all to comment on. 
I meant to post a notice of this to xml-dev, but am only now getting
around to it.  Consider this the notice!


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS