This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Re: xsl:element
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Re: xsl:element
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Sun, 23 Sep 2001 22:47:56 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> > > So if you did something like
> > >
> > > <xsl:element name="foo" xmlns="blah">
> > > <bar/>
> > > </xsl:element>
> > >
> > > then you should get
> > >
> > > <foo>
> > > <bar xmlns="blah"/>
> > > </foo>
> > Using MSXML3 you get:
> > <foo xmlns="blah"><bar /></foo>
> > With Saxon the results are, respectively:
> > <foo xmlns="blah"><bar/></foo>
>
> I am at a loss to explain this. Perhaps I am misreading the spec.
> Michael?
>
Section 7.1.2: "If the namespace attribute is not present then the QName is
expanded into an expanded name using the namespace declarations in effect
for the xsl:element element, including any default namespace declaration".
So the new "foo" element must be in namespace "blah".
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list