Re: [xslt] Problem with creating namespace in the stylesheet

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="";>
> If I write:
> <xsl:element name="xslo:stylesheet">
> 	<xsl:attribute name="xmlns:netopeer">
> 		<xsl:text></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="";>
> ...
> </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 ?


Daniel Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]