W3C home > Mailing lists > Public > www-xml-xinclude-comments@w3.org > July 2000

RE: What happens to embedded stylesheets

From: Jonathan Marsh <jmarsh@microsoft.com>
Date: Mon, 17 Jul 2000 14:01:31 -0700
Message-ID: <116DFD732FA92E4D9B647C8EEF6DAF1015E278@red-pt-02.redmond.corp.microsoft.com>
To: "'Martin Bryan'" <mtbryan@sgml.u-net.com>, www-xml-xinclude-comments@w3.org
Martin Bryan wrote:
> Its one thing to make the bald statement that the question of 
> included stylesheets is
> >Outside the scope of XInclude, in any case...
> but another altogether to deliberately ignore my question

I certainly did not mean to either make bald statements nor to ignore your
question.  (If so, a lack of reply would probably have been simpler :-)
Instead I tried to point out that your question makes invalid assumptions.

> > > If they are 
> > > embedded must action be taken to restore the stylesheet in 
> > > force prior to the inclusion when its final node is returned?
> The problem is that if these PIs are included, and no further 
> action is taken, the stylesheet would seem to remain in force 
> for those elements in the document containing the inclusion 
> that follow the inclusion element My point is that you need 
> to state something about the scoping of stylesheet PIs (which 
> are specific to XML, not specific to any other application), 
> or at very least warn people of the potential dangers.

At the risk of being accused of ignoring your question, I repeat: Inclusion
as defined in XInclude has nothing to do with styling.  It is a tree-level
operation.  Processing instructions in general are specific to XML.  The
xml-stylesheet processing instruction is specific to XML browsers.  You can
verify that the xml-stylesheet pi is not treated specially in the infoset

Another way to say it is, if you can tell me what this means...

  <?xml-stylesheet type="text/xml" href="style1.xsl"?>
    <?xml-stylesheet type="text/xml" href="style2.xsl"?>

...then you've answered your own question about what this means...

  <?xml-stylesheet type="text/xml" href="style1.xsl"?>
    <xml:include href="file.xml"/>


  <?xml-stylesheet type="text/xml" href="style2.xsl"?>

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.

Hope this helps.

- Jonathan
Received on Monday, 17 July 2000 17:02:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:09:29 UTC