xsl-list
[Top] [All Lists]

Re: [xsl] Whitespace Copied in Element Content Nodes

2008-07-22 16:28:04
Thanks for the information.

I'm currently stuck to use Saxon-B so I guess xsl:strip-space is the way to go.

Again thanks!
--
Jeff

On 07 22, 08, at 8:21 PM, Michael Kay wrote:


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
transformation.)

Michael Kay
http://www.saxonica.com/

-----Original Message-----
From: Jeff Sese [mailto:jeferson(_dot_)sese(_at_)asiatype(_dot_)com]
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




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


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




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--