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

Re: Problem with the document() function

Subject: Re: Problem with the document() function
From: Michael Fuller <msf@xxxxxxxxxxxxxxxxxx>
Date: Tue, 15 Feb 2000 08:52:15 +1100
document fun
Didier wrote:
> I have found the fix which is to explicitly define the default name
> space and refer to elements with the explicitly defined name space.
> 
> I mean that, if the document to be processed has a default name space (ex:
> xmlns="http://www.w3.org/1999/xhtml"), this latter has to be defined as
> xmlns:html="http://www.w3.org/1999/xhtml" and the member of the html name
> space referred with the html prefix.

Question: was the failure with default-namespace attributes or
elements?

I presume the former, in which case the "failure" was probably
correct[1] behaviour given that:
  "Note that default namespaces do not apply directly to attributes."
  [_Namespaces in XML_, http://www.w3.org/TR/REC-xml-names/, sec. 5.2, para 1.]

A perennial topic of discussion on XML-DEV: attributes and default
namespaces :-(! Anyway, the bottom line is that you can use default
namespaces for elements, but not for attributes...

If it was default-namespaced _elements_, then it was simply a bug,
either in your stylesheet/documents or in XT.

> I was too tired to notice it.

Don't sweat it. _Everyone_, I suspect, gets bitten by namespaces in
general and attribute namespaces in particular, sooner or latter.

Anyone for architectural forms? ;-)

Michael

[1] but questionable ;-)


 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.