Re: [xsl] mixing it up: REST+XML Namespaces + XLST

Subject: Re: [xsl] mixing it up: REST+XML Namespaces + XLST
From: Eric van der Vlist <vdv@xxxxxxxxxxxx>
Date: Tue, 19 Apr 2005 10:20:22 +0200
Hi,

On mar, 2005-04-19 at 09:57 +0200, James Fuller wrote:

> I wont make an arguement for such a bastard child...but it does save a
> few cycles 

Hmmm... I must be missing something, but I don't see how
"document(fn:namespace-uri(.))" saves cycles compared to
"document(@lnk)"!

Furthermore, your trick requires that you use namespaces in your
instance documents which you might have been able to avoid without it
and these namespaces do add many cycles (for instance imposing that you
use prefixes in all your XPath expressions).

> and its usage within XSLT is pretty elegant.

Isn't it very subjective :-) ?

Personally, I wouldn't call using XSLT 2.0 "elegant" at all !

Eric 

-- 
Le premier annuaire des apiculteurs 100% XML!
                                                http://apiculteurs.info/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------

Current Thread