Subject: [xsl] Re: xsl-list Digest 31 Jul 2007 05:10:00 -0000 Issue 1213 From: David J Birnbaum <djbpitt+xml@xxxxxxxx> Date: Tue, 31 Jul 2007 08:42:00 -0400 |
---------------------------------------------------------------------- Date: Mon, 30 Jul 2007 09:01:01 +0100 To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> From: "Michael Kay" <mike@xxxxxxxxxxxx> Subject: RE: [xsl] getting rid of namespaces Message-ID: <006e01c7d27f$c54e21a0$6401a8c0@turtle>
If you create elements in the correct namespace, the namespace declarations will take care of themselves. Your problem is that you want the <html> element to be in no namespace, but you have generated it in the XHTML namespace. This appears to be because you generated it by copying an element from the source document. <xsl:copy-of> will always copy the expanded name of an element unchanged from the source to the result; if you want to rename the element you need to use <xsl:element>.
Michael Kay
http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] first warning message is , Sharma, Jaikumar | Thread | Re: [xsl] Re: xsl-list Digest 31 Ju, David Carlisle |
Re: [xsl] Finding the current node , David Carlisle | Date | Re: [xsl] Re: xsl-list Digest 31 Ju, David Carlisle |
Month |