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: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 14 Jan 2007 23:40:25 -0000
>   Mmh, ok, thanks.  So to use xsl:namespace within an XSLT 
> 1.0 stylesheet, without changing the the 
> xsl:stylsheet/@version to '2.0'
> (to prevent errors due to compatibility mode), the only way 
> is to use an external stylesheet file with 
> xsl:stylsheet/@version = '2.0', defining just the named 
> template using the xsl:namespace?
> 

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).

Michael Kay
http://www.saxonica.com/

Current Thread