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

RE: asthetics vs convention for namespace prefixs

Subject: RE: asthetics vs convention for namespace prefixs
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 26 Jul 2007 14:34:26 +0100
RE:  asthetics vs convention for namespace prefixs
Actually, in XSLT 2.0 you pretty-well *can* force the processor to use a
particular prefix. Namespace fixup is required to respect your choice of
prefix unless there is a conflict with another use of the same prefix. 

> 
> I know I can't rely on the prefix being used, but is it 
> frowned upon to try and encourage a specific namespace prefix?

There are use cases where you need to force a specific prefix not just for
aesthetic reasons:

(a) if you have namespace-sensitive data in text or attribute nodes

(b) if you are generating a vocabulary such as XHTML that uses a DTD, since
DTD's are not namespace-aware.

And I think that whenever you generate output whose markup will be seen by
humans, the choice of prefix is significant in that it will be easier for
them to read it if the prefix is mnemonic.

Michael Kay
http://www.saxonica.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.