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

Re: Problem with Entities

Subject: Re: Problem with Entities
From: "Colin Adams" <colinpauladams@xxxxxxxxxxx>
Date: Wed, 31 Jan 2007 13:48:31 +0000
Re:  Problem with Entities
From: David Carlisle <davidc@xxxxxxxxx>

> Will the output of this always be relative to the location of the source xml?
I think in practice it just uses whatever string you put in the DTD
SYSTEM identifier.


Unlike other URI it doesn't seem to be automatically resolved angainst
any base.

XSLT2 says it returns the system id from the data model and teh data
model says


http://www.w3.org/TR/xpath-datamodel/#dm-unparsed-entity-system-id


The dm:unparsed-entity-system-id accessor returns the system identifier
of an unparsed external entity declared in the specified document. I

Note that this is _not_ defined to be a URI, but defined to be a "system identifier"

XDM defines "system identifier" in section 6.5.1 to be "The system identifier of the entity."
which is getting a bit circular,



but infoset defines it http://www.w3.org/TR/xml-infoset/#infoitem.rse here as

[system identifier] The system identifier of the entity, as it appears
in the declaration of the entity, without any additional URI escaping
applied by the processor.

so I think that confirms that you should get back the DTD-provided
string.

The infoset also defines a declaration base uri for it to be resolved against.
It looks to me like the DM should be using that.


On practical grounds, since SAX will be doing just that (effectively), it would be better if the DM defined that, so we get consistency across processors. Perhaps it can be considered for the errata?

_________________________________________________________________
MSN Hotmail is evolving  check out the new Windows Live Mail http://ideas.live.com


Current Thread

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
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.