You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by ta...@ca.ibm.com on 2001/05/03 19:43:53 UTC
Dynamically generation an attribute with namespace prefix
Hi all,
I am trying to dynamically generate an XSLT which uses some Xalan
extensions components.
So my stylesheet needs the xmlns:lxslt="..." part as follows:
<gen:stylesheet xmlns:gen="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:lxslt="http://xml.apache.org/xslt"
Here's how I am doing this. Except I can't generate an attribute with
a namespace prefix. Can you do that, what am I doing wrong?
<xsl:element name="gen:stylesheet">
<xsl:attribute name="version">
<xsl:value-of select=" '1.0' "/>
</xsl:attribute>
<xsl:attribute name="xmlns:lxslt">
^^^^^^^^^^^
<xsl:value-of select=" 'http://xml.apache.org/xslt' "/>
</xsl:attribute>
Cheers,
Tammam