[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Prevent compilation error for xsl:namespace in XSL

Subject: RE: Prevent compilation error for xsl:namespace in XSLT 1.0
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 14 Jan 2007 23:27:45 -0000
RE:  Prevent compilation error for xsl:namespace in XSL
XSLT 1.0 does not recognize the version attribute on xsl:namespace. It
recognizes only a version attribute on xsl:stylesheet, or an xsl:version
attribute on a literal result element.

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

> -----Original Message-----
> From: Florent Georges [mailto:darkman_spam@xxxxxxxx]
> Sent: 14 January 2007 22:21
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Prevent compilation error for
> xsl:namespace in XSLT 1.0
>
> Michael Kay wrote:
>
>   Hi
>
> > What exactly did you do?
>
>     (drkm)[66] ~/xslt/tests$ cat xsl-ns.xsl
>     <xsl:stylesheet
>         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>         version="1.0">
>
>         <!-- Test xsl:namespace guarded by element-available() -->
>
>         <xsl:template match="/">
>           <a>
>             <xsl:if test="element-available('xsl:namespace')">
>               <xsl:namespace
>                   name="pre"
>                   select="'uri'"
>                   version="2.0"/>
>             </xsl:if>
>           </a>
>         </xsl:template>
>
>     </xsl:stylesheet>
>
>     (drkm)[67] ~/xslt/tests$ saxon6 xsl-ns.xsl xsl-ns.xsl
>     Error at xsl:namespace on line 10 of xsl-ns.xsl:
>       Unknown XSLT element: namespace
>     Transformation failed: Failed to compile stylesheet.
>       1 error detected.
>
>     (drkm)[68] ~/xslt/tests$
>
>   Regards,
>
> --drkm
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ______________________________________________________________
> _____________
> Dicouvrez une nouvelle fagon d'obtenir des riponses ` toutes
> vos questions !
> Profitez des connaissances, des opinions et des expiriences
> des internautes sur Yahoo! Questions/Riponses
> http://fr.answers.yahoo.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.