I think the most likely explanation of this is that your <p> element is in a namespace. Could you provide a more complete source document and stylesheet that allow the problem to be reproduced?
 
Michael Kay
http://www.saxonica.com/


From: saxon-help-bounces@lists.sourceforge.net [mailto:saxon-help-bounces@lists.sourceforge.net] On Behalf Of Stephen Perkins
Sent: 23 December 2007 18:07
To: saxon-help@lists.sourceforge.net
Subject: [saxon] xsl:output/@saxon:suppress-indentation working?

Hi,

 

Is there a bug with support the new serialization attribute xsl:output/@saxon:suppress-indentation?

 

Using 9.0.0.2, given a stylesheet with the attribute set as so:

 

<xsl:output method="xml" indent="yes" saxon:suppress-indentation="p"/>

 

The input:

 

...

            <p>Some text where mixed content can be output <render as="italic">fu</render><render as="underscore">bar</render> if I don't handle whitespace properly.</p>

...

 

is output as:

 

...

            <p>Some text where mixed content can be output <render as="italic">fu</render>

            <render as="underscore">bar</render> if I don't handle whitespace properly.</p>

...

 

(indentation not suppressed, resulting in unwanted space being introduced between the two <render> elements)

 

Thanks for taking a look.

 

-Stephen

 

Stephen Perkins

dataformat.com