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

RE: exclude-result-prefixes

Subject: RE: exclude-result-prefixes
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 16 Jan 2003 19:28:14 -0000
exclude result prefixes default
The spec is sloppily worded. It says the value is "a list of namespace
prefixes" and then says it can include "#default"; but "#default"
clearly isn't a namespace prefix, and there is no way it could be
declared, so the error condition saying it must be declared clearly
doesn't apply to this case.

the wording is improved in 2.0:

The value of the attribute is a whitespace-separated list of tokens,
each of which is either a namespace prefix, or #default, or #all. The
namespace bound to each of the prefixes is designated as an excluded
namespace. It is a static error if there is no namespace bound to the
prefix on the element bearing the [xsl:]exclude-result-prefixes
attribute.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx  

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Johannes Dobler
> Sent: 16 January 2003 16:33
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  exclude-result-prefixes 
> 
> 
> Is the following stylesheet correct? It designates the 
> default namespace as 
> excluded without a declaration of the default namespace:
> 
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> 	version="1.0"
> 	exclude-result-prefixes="#default">
> ...
> </xsl:stylesheet>
> 
> The xslt rec says: "It is an error if there is no namespace 
> bound to the 
> prefix on the element bearing the exclude-result-prefixes or 
> xsl:exclude-result-prefixes attribute.", so I would expect 
> its not correct.
> 
> I'm asking because Xalan and Saxon accept such a stylesheet.
> 
> regards,
> Johannes
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 


 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.