Subject: RE: [xsl] asthetics vs convention for namespace prefixs From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Thu, 26 Jul 2007 14:34:26 +0100 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] asthetics vs convention f, David Carlisle | Thread | [xsl] how to assign a NULL to a var, shi wudao |
Re: [xsl] asthetics vs convention f, David Carlisle | Date | Re: [xsl] Rounding errors in financ, David Carlisle |
Month |