[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: exclude-result-prefixes
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|