W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2004

Re: Getting Namespaces into a Transform

From: Jeni Tennison <jeni@jenitennison.com>
Date: Tue, 16 Nov 2004 17:03:59 +0000
Message-ID: <15436909.20041116170359@jenitennison.com>
To: "Jim Stanley" <JimS@Media-Services.Com>
CC: xmlschema-dev@w3.org

Hi Jim,

> So there are several attributes to the root besides the namespace
> declaration. Since I declare the root element programatically, what
> do I need to do to stick literals in there?

The namespace declaration will be added automatically if you add an
attribute that uses that namespace declaration to the element. So if
you do:

<xsl:stylesheet version="1.0"

<xsl:template match="root">
  <xsl:element name="root">
    <xsl:attribute name="xsi:noNamespaceSchemaLocation">

you should get the xsi:noNamespaceSchemaLocation attribute you want,
plus the namespace declaration that it needs.



Jeni Tennison
Received on Tuesday, 16 November 2004 17:04:02 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:06 UTC