xsl-list
[Top] [All Lists]

[xsl] [XSL] Adding namespaces to output?

2009-03-18 05:57:38
Hi,

I've encountered a little problem (or more exactly two). I want to do
an XSL-transformation where I want to add two namespaces to the root
tag of the resulting output file. I want the output to look like this:
<scxml xmlns="http://www.w3.org/2005/07/scxml";
xmlns:xs="http://commons.apache.org/scxml";
version="1.0"
initialstate="INIT">

I can create the two last attributes simply by using the attribute
tag, but I'm having trouble with the namespaces. I've tried to write
for example:
<xsl:element name="scxml" namespace="http://commons.apache.org/scxml";>
but that just gives me the output
<cs:scxml xmlns:cs="http://commons.apache.org/scxml";>
which obviously is wrong.
Also, I don't know how to add two different namespaces? If someone
could help me with these two questions I would be very grateful!

Sincerely,
Anna

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>