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

Re: How to spell "No PSVI" in XSLT 2.0 ?


xsl ignore whitespace
Hi Evan,

>> All XSLT processors need to govern the building and transforming
>> aspects; xsl:strip-space and xsl:preserve-space give control over the
>> building.
>
> I think you've got the right idea, but a simpler way of looking at
> this is that XSLT processors only have control over the
> transformation, and whitespace stripping is the optional first step
> in any transformation. This view is also more faithful to the 1.0
> spec's description[1].

Well, I guess I think conceiving of it as a four-stage process
(parsing, building, transforming, serializing) is simpler than
conceiving of it as a five-stage process (parsing, building,
whitespace-stripping, transforming, serializing).

I thought that XSLT 2.0 would be describing xsl:strip-space and
xsl:preserve-space in terms of the effect it had on the building of
the node tree. The Data Model WD states that XSLT's whitespace
handling mechanism needs to be supported somehow, so I thought that
would be where it was supported, probably by allowing text nodes to be
designated as insignificant whitespace if they are within an element
whose name is on one list and not on the other, and always setting the
ignore-whitespace flag to true. But obviously you know more than I do
about how the WGs are thinking.

Or maybe I should be picturing it as:

  document ---> node tree ---> node tree ---> node tree ---> document
        (parsing)      (stripping)  (transforming) (serialising)
        
                    +-----------------------------+
                            XSLT processor

      +----------------------------------------------------------+
                           XSLT application

And not talking about the PSVI at all; the node tree could be
constructed from some other infoset, after all...
                           
Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


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.