RE: make-absolute-uris may match strings which are not of type anyURI ...

> So the input
> 	<c:file name="ab er.xml"/>
> becomes
> 	<c:file name="file:/J:/test/ab%20er.xml"/>

Now I wonder if this is actually correct. After reading the relevant
parts of the XML Base and XML Schema (anyURI) specifications, my current
understanding is that that on the XML *source* level, the values are not
escaped. So in your XML source, you can (must?) use "raw" values such as
"ab er.xml" in your @xml:base attributes (or in elements/attributes that
are of type xs:anyURI). These values get escaped internally when the
processor does some URI manipulation with them.

So the p:make-absolute-uris step should therefore do the escaping itself
("ab er.xml" --> "ab%20er.xml") before resolving the URI against the
base URI. Then it should *unescape* the result, so you don't get:

<c:file name="file:/J:/test/ab%20er.xml"/>

but:

<c:file name="file:/J:/test/ab er.xml"/>

I am not really sure about this, perhaps somebody else can shed more
light into this?

Regards,
Vojtech

--
Vojtech Toman
Principal Software Engineer
EMC Corporation
toman_vojtech@emc.com
http://developer.emc.com/xmltech

Received on Monday, 21 September 2009 13:18:52 UTC