Subject: RE: [xsl] Re: xsl:element From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Sun, 23 Sep 2001 22:47:56 +0100 |
> > > 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re: xsl:element, Mike Brown | Thread | Re: [xsl] Re: xsl:element, Mike Brown |
Re: [xsl] preserving whitespace, Eric Smith | Date | RE: [xsl] divide strings, Michael Kay |
Month |