Re: [xsl] XHTML DTD aware transformation and indentation behaviour

Subject: Re: [xsl] XHTML DTD aware transformation and indentation behaviour
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 02 Feb 2012 14:13:40 +0000
On 02/02/2012 13:49, Matthieu Ricaud-Dussarget wrote:

Just one more question about the output :
A <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
element is added to the <head> element, this is the only residual
unindented element in the file. I'm not sure why saxon add this ? It
doesn't seems to depend on the xsl:output settings : even when
xsl:output is absent I get the <meta> added, with no attribute
@encoding="UTF-8" on the xsl:output I also get the meta....


your output is defaulting to xhtml method which does this unless you say include-content-type="no" on xsl:output"

or specify the xml output method on xsl:output

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