RE: [xsl] Whitespace Copied in Element Content Nodes

Subject: RE: [xsl] Whitespace Copied in Element Content Nodes
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 22 Jul 2008 13:21:18 +0100
The fact that there is an XML Schema isn't going to affect the behaviour of
the XSLT processor unless it knows about it, and it won't know about it
unless it is schema-aware.

So yes, you need Saxon-SA. (And you need to use the schema-awareness, by
ensuring that the source document is validated on its way into the

Michael Kay

> -----Original Message-----
> From: Jeff Sese [mailto:jeferson.sese@xxxxxxxxxxxx] 
> Sent: 22 July 2008 08:39
> To: XSL List List
> Subject: [xsl] Whitespace Copied in Element Content Nodes
> Hi,
> I'm doing a identity transformation of an XML that is defined 
> in a XML Schema, why is it that my element defined as element 
> only content retains the whitespace used for indention in the 
> result? I expected that this would be removed because these 
> are ignorable whitespace as defined in the schema.
> I'm using XSLT 2.0 and transforming using oXygen and Saxon 9B.
> Do I need a SA  version of Saxon for this?
> Thanks,
> -- Jeff
> Jeferson L. Sese
> jeferson dot sese at asiatype dot com
> Asiatype Inc.
> Suite 114 Columbia Tower
> Ortigas Ave., Greenhills
> Mandaluyong City 1550 Philippines
> Tel: +632-744-6262
> Mobile: +63927-671-7901

Current Thread