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

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


jdom psvi
At 9:42 AM -0400 5/17/02, Mike Champion wrote:

>We keep circling back to the same issue: XSLT relies on a parser to
>turn syntax into a data model that it recognizes.  It says nothing
>about what the parser should do with external entities, or Xincludes,
>or anything else that had not been invented when the XSLT spec
>was written <grin>, just that the parser had better not put them
>in the data model if it expects XSLT to do anything sensible.
>

We do keep circling back to that, don't we? However, here I don't 
think it's quite as applicable. When the parser sees an unprocessed 
entity what is it going to do? It's going to pass the buck to client 
application. In SAX, this means it's going to call skippedEntity(). 
In DOM, it's going to put an EntityReference object in the tree.  In 
JDOM, it's going to put an EntityRef object in the tree. All three 
cases (and probably others) will be passed to the XSLT processor 
which then is faced with an entity reference, and as the data model 
requires they must resolve that entity reference. If the parser has 
not provided sufficient information for the entity reference to be 
resolved, then the XSLT processor should throw an error. The XPath 
1.0 data model is simply not defined for documents that contain 
unresolvable entity references.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@m... | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          The XML Bible, 2nd Edition (Hungry Minds, 2001)           |
|             http://www.cafeconleche.org/books/bible2/              |
|   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+

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.