Subject: Re: [xsl] Dynamically setting namespace prefix From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx> Date: Thu, 7 Jun 2007 14:22:08 +0100 |
Hi all,
I am trying to generate schemas from some XML source, using XSLT 2.0 (Saxon 8.9 B).
During the generation I have to dynamically add imports of several other schemas, of which the namespace is composed during processing.
However, I need to add those namespaces to the schema element, in order to have references to the imported schemas work.
How can I dynamically set the prefix of a namespace, if I do not know how many there will be. Using a variable in xsl:namespace like <xsl:namespace name="$some_variable" .../> fails.
<xsl:element name="{$pre}:mynode"> ... </xsl:element>
cheers andrew
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Dynamically setting names, Florent Georges | Thread | RE: [xsl] Dynamically setting names, Michael Kay |
Re: [xsl] A more concise way to han, Martin Honnen | Date | RE: [xsl] A more concise way to han, Michael Kay |
Month |