This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: problem generating dynamic namespace declarations
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: problem generating dynamic namespace declarations
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Tue, 18 Jul 2000 09:27:17 +0100
- Reply-To: xsl-list at mulberrytech dot com
> I'm writing a stylesheet that generates XML Schema documents, which
> requires a namespace declaration that I want to assign via
> stylesheet parameters.
>
> To generate a namespace declaration, output an element or
> attribute whose name is in that namespace; or output a literal result
element
> when that namespace is in scope. If you do that, the namespace
> declaration will be produced automatically.
>
Sorry, that was correct but not very helpful. If the namespace is known to
you only as the value of a parameter, the way to output an element using
that namespace is, for example:
<xsl:element name="local" namespace="{$ns-param}">
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list