This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Re: xsl:element


> > > 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]