Subject: RE: Re: [xsl] XML Namespaces and <xsl:output> don´t work From: "Scott Trenda" <Scott.Trenda@xxxxxxxx> Date: Wed, 15 Oct 2008 15:22:39 -0500 |
Just for the record, isn't this sort of case exactly what the method="xhtml" option new to XSLT 2.0 was designed for? -----Original Message----- From: David Carlisle [mailto:davidc@xxxxxxxxx] Sent: Wednesday, October 15, 2008 2:51 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Re: [xsl] XML Namespaces and <xsl:output> don4t work > xsl:output dont4t work. Most likely because the result tree is not being serialised by the XSLT engine. It appears that you are using cocoon which as I recall allows the result to be passed as an in-memory tree on through a pipeline and serialisation is handled by cocoon rather than the XSLt engine. > I i put **** <map:serialize type="xml"/> then xsl:output work, and Doctype > is added but the result is xml, don4t html > > what can i do? That's a cocoon question not an XSLt one, and it's been many years since I used cocoon sorry, perhaps someone else can tell you how to get html serialisation. It's off topic for this list though, really. However > I i put **** <map:serialize type="xml"/> then xsl:output work, and Doctype > is added but the result is xml, don4t html You have put your elements in the xhtml namespace and specifid the xhtml doctype, so you should want xml serialisation not html. Using the xhtml doctype with html (should) just lead to parse errors 9although of curse browsers don't report errors). If you want html you should use no-namepsae and use html serialisation. David ________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Re: [xsl] XML Namespaces and <, David Carlisle | Thread | Re: RE: Re: [xsl] XML Namespaces a, David Carlisle |
Re: Re: [xsl] XML Namespaces and <, David Carlisle | Date | Re: RE: Re: [xsl] XML Namespaces a, David Carlisle |
Month |