Re: [xsl] Prevent compilation error for xsl:namespace in XSLT 1.0

Subject: Re: [xsl] Prevent compilation error for xsl:namespace in XSLT 1.0
From: "Colin Adams" <colinpauladams@xxxxxxxxxxx>
Date: Mon, 15 Jan 2007 08:16:26 +0000
From: Florent Georges <darkman_spam@xxxxxxxx>
Michael Kay wrote:

> Either that, or put xsl:version on a containing literal
> result element, which of course is not always possible or
> convenient (that's why we generalized the rules in 2.0).

Yes, I think the external module is the best solution.

  And to prevent compilation error with processors don't
supporting the namespace axis, I think a use-when with
element-available('xsl:namespace') will be enough (because
this can only arise with XSLT 2.0 processors)?

Support for the namespace axis is another matter. Xsl:namespace will be available for all XSLT 2.0 processors.


_________________________________________________________________
MSN Hotmail is evolving  check out the new Windows Live Mail http://ideas.live.com


Current Thread