Next in thread → Next in month →

RE: [xml-dev] XSLT and URI processing

From
Michael Kay <>
To
"'Simon St.Laurent'" <>
Date
2002-07-19T09:22:26Z
ID
<000101c22f05$cc432690$6401a8c0@pcukmka>
Thread
RE: [xml-dev] XSLT and URI processing
> Michael Kay wrote:
> > Between them, I think the XPath 2.0 functions base-URI() [1] and
> > resolve-URI() [2] should meet your needs. If not, please raise a 
> > comment on the document.
> > 
> > [1] http://www.w3.org/TR/xquery-operators/#func-base-uri
> > [2] http://www.w3.org/TR/xquery-operators/#func-resolve-URI
> 
> On base-URI, it says that it returns the "base URI property" 
> I'm guessing that this includes xml:base - does it?
> 
> The resolve-URI specification claims it returns "relative" on 
> an absolute URI when I think it means "$relative".

Thanks, I'll pass this correction to the editors.
> 
> I know these are rough specs, but this is pretty tricky to 
> connect to xml:base overall.

Yes, you have to be prepared to follow a few indirections:

The XPath data model [3] defines the base URI property in terms of the
[base URI] property of the InfoSet.

The InfoSet [4] says that certain information items have a base URI
property, and says that they are computed as defined in XML Base.

XML Base [5] defines how the base URI property depends on xml:base. 

[3] http://www.w3.org/TR/query-datamodel/
[4] http://www.w3.org/TR/xml-infoset/
[5] http://www.w3.org/TR/xmlbase/

Michael Kay
Software AG
home: 
work: 
Next in thread → Next in month →