RE: [xsl] xml:base

Subject: RE: [xsl] xml:base
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 24 Feb 2004 09:05:50 -0000
> 
> Does XSLT 2.0 (or indeed 1.1) require the XML parser to 
> support xml@base?

Yes and no.

XSLT 2.0 (via the data model spec) defines a mapping from the InfoSet to
the XPath data model, and this mapping uses the xml:base attribute to
determine the base URI of a node. There is still some debate about what
the conformance rules should say about this mapping, i.e. about whether
every product should be required to provide it. (Conformance rules are
typically the last thing to get pinned down in a spec).

However, the specs also allow XPath document trees to be constructed in
any other way you fancy, so mappings that ignore xml:base are certainly
permitted.

Michael Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread