Subject: RE: [xsl] No defaut possible namespace ? From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Mon, 24 Sep 2001 18:59:02 +0100 |
Generally it's best to make the default namespace for the stylesheet the same as the default namespace for the result document, otherwise literal result elements don't work as you expect. You can use any namespace as the default, but you have to be very careful about which things get prefixed and which don't. Note that the default namespace never applies to names held in XPath expressions or XSLT patterns. Mike Kay > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Guillaume > Rousse > Sent: 24 September 2001 16:35 > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] No defaut possible namespace ? > > > I have a working stylesheet with following namespaces: > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" for XSL namespace > xmlns:foo="anyurl" for my own document namespace > I tried to make one of these the default namespace for making > the stylesheet > more readble, however: > -making the XSL namespace fails because of html tag in the stylesheet: > html is not allowed in this position in the stylesheet! > -making my own namespace the default one fails as nothing is > recognized > anymore by the stylesheet ?! > -- > Guillaume Rousse <rousse@xxxxxxxxxxxxxx> > GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html > > 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] No defaut possible namespace , Guillaume Rousse | Thread | [xsl] sorting results by date, John Day |
[xsl] Sablotron 0.7 /PHP 4.0.6 prob, Carsten Heinrigs | Date | RE: [xsl] sorting results by date, Michael Kay |
Month |