Re: [xslt] Problem with creating namespace in the stylesheet
- From: Daniel Veillard <veillard redhat com>
- To: The Gnome XSLT library mailing-list <xslt gnome org>
- Subject: Re: [xslt] Problem with creating namespace in the stylesheet
- Date: Wed, 22 Sep 2004 04:55:02 -0400
On Wed, Sep 22, 2004 at 08:55:58AM +0200, Petr Novak wrote:
> Hallo,
> I am using xsltproc and I need to obtain as a result the XSLT stylesheet. But
> I have got troubles with creating the namespace. I need the namespace with
> prefix 'netopeer', for example: <xslo:stylesheet xmlns:netopeer="http://www.liberouter.org/ns/netopeer/1.1.7">
>
> If I write:
> <xsl:element name="xslo:stylesheet">
> <xsl:attribute name="xmlns:netopeer">
> <xsl:text>http://www.liberouter.org/ns/netopeer/1.1.7</xsl:text>
> </xsl:attribute>
> ...
> </xsl:element>
> ,the xsltproc creates the stylesheet element only with namesapaces whih are in
> the processing XSLT stylesheet and my <xsl:attribute> is ignored. I cannot set
> the "netopeer" namespace in the processing XSLT stylesheet, because it is
> created on-the-fly (from the processed XML document).
>
> If I create the output stylesheet as a text:
> <xslo:stylesheet xmlns:netopeer="http://www.liberouter.org/ns/netopeer/1.1.7">
> ...
> </xslo:stylesheet>
> . it works, but I don't thing that it is the good solution.
>
>
> Can you advise me, how to do it?
I'm afraid I don't understand, stylesheets fragments just don't work
to pass the problem you're trying to explain.
Did you check http://www.w3.org/TR/xslt#element-namespace-alias ?
Daniel
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]