Re: Banning relative - No real damage?

> I use them relative (in fact, non-existent) namespaces all the time as
> a processing hack in XSL transforms using IE5. 
> 
> <HTML xmlns:hack="file://localhost/firetruck.txt"> ... </HTML>
> Then I can wrap the elements <hack:this>, <hack:that> up inside HTML

That is an absolute URI. So is safe from all but the most destructive
proposals.

You could (currently) just as well have gone

<HTML xmlns:hack="firetruck.txt"> ... </HTML>

which would be severely affected by the "forbid" option.

Whether it would be affected by a change to an absolute interpretation
depends on whether or not your stylesheet is in the same directory as
your xml file. That is if you use
 
<xsl:template match="design:this" xmlns:design="firetruck.txt"/>

then with the literal interpretation it'll match your <hack:this>,
with the absolute interpretation it will match if the relative URI
firetruck.txt resolves to the same absolute URI from both the XML file
and the stylesheet, and not otherwise.

David

Received on Tuesday, 6 June 2000 06:06:06 UTC