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

Re: XSL and Namespace

Subject: Re: XSL and Namespace
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Thu, 31 May 2001 10:59:06 +0100
xslt processor ignore namespace
Hi Johannes,

>>> The spec says <xsl:import> has to be the first element but does it
>>> have to be the first element of all namespaces?
>
> "In addition, the xsl:stylesheet element may contain any element not
> from the XSLT namespace, provided that the expanded-name of the
> element has a non-null namespace URI. (...) Thus, an XSLT processor
> is always free to ignore such top-level elements, and must ignore a
> top-level element without giving an error if it does not recognize
> the namespace URI."
>
> So it is an error to put a <documentation:xyz> element before
> <xsl:import> but the XSLT implementation must ignore the error. But
> must it ignore only the fact that it does not recognize the
> namespace URI or can it ignore the element occurring before
> xsl:import? The later seems quite reasonable to me.

It depends what types of 'error' the Rec. is assuming that the
processor might give when confronted with a non-XSLT top-level
element.  I think that the errors it's referring to is simply the
"this isn't a recognised element" error, not all possible errors that
might arise due to those elements.

I think that the (non-normative) XSLT DTD supports this position:

   <!ENTITY % top-level "
      (xsl:import*, (xsl:include | xsl:strip-space |
                     xsl:preserve-space | xsl:output | xsl:key |
                     xsl:decimal-format | xsl:attribute-set |
                     xsl:variable | xsl:param | xsl:template |
                     xsl:namespace-alias
                     %non-xsl-top-level;)*)
      ">

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.