RE: [xsl] No defaut possible namespace ?

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=""; 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
>  XSL-List info and archive:

 XSL-List info and archive:

Current Thread