[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XLink transformations

  • From: Ben Trafford <ben@l...>
  • To: xml-dev@x...
  • Date: Thu, 20 Jul 2000 00:17:18 -0700

Re: XLink transformations

At 08:26 AM 7/18/00 +0100, Martin Bryan wrote:
>Its interesting that you've raised this issue with the XLink group as I've 
>just raised a similar issue with the XInclude group (what happens if the 
>included object has an attached stylesheet - what is its scope?). They 
>pointed out to me that xsl-stylesheet PIs are only valid if the occur in 
>the prolog, so any included stylesheet calls are invalid. Presumably the 
>same applies to documents that are linked to another document as the PI 
>therefore does not get placed in the combined tree at a valid point. The 
>question I raised was whether it shouldn't be a requirement that PIs that 
>are known to be invalid in context be stripped from the inclusion tree.

         That's news to me, Martin. The Infoset (upon which XInclude is 
based) allows for information items to be passed about the prolog. XInclude 
does not prohibit the prolog information to be passed during the inclusion, 
and since it merges infosets, one must assume that the prolog information 
is also passed. Since PIs are legal at any point in an XML document, it is 
premature to assume that they are automatically invalidated by their 
presence within the document. It seems to me that it would behoove the XML 
Core WG to consider the merging of informat

         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.

         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.

--->Ben Trafford


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.