xsl-list
[Top] [All Lists]

RE: [xsl] Xsl:strip-space and xsl:preserve-space (XSLT 2.0)

2008-09-25 03:10:03
 


<xsl:template match="*[not(self::element1 or
self::element2)]/text()[not(normalize-space())]"/>
Let me know if that works. :-)


Thanks Evan. I will check and let you know.

Pankaj



Evan Lenz wrote:
Pankaj,

You can force MSXML to preserve whitespace by adding 
xml:space="preserve" to the root element of your document. Then your 
original stylesheet should work as desired. Let me know if that works.

Evan


Pankaj Chaturvedi wrote:
Not a good news for me.

Well anyways David/Michael thanks for looking into this.


Best,

Pankaj Chaturvedi

=====================================================================
=======

================


-----Original Message-----
From: Michael Kay [mailto:mike(_at_)saxonica(_dot_)com] Sent: Wednesday, 
September 24, 2008 6:36 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Xsl:strip-space and xsl:preserve-space (XSLT 2.0)


I believe it's true that the AltovaXML processor always strips 
whitespace nodes (or calls the MSXML parser in a way that strips 
them) and I'm not aware of any way of changing this.

Michael Kay
http://www.saxonica.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>
--~--



--~------------------------------------------------------------------
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>
--~--


Confidentiality Notice:" This message and any attachment(s)
contained here are information that is confidential, proprietary to
IDS Infotech Ltd. and its customers.
Contents may be privileged or otherwise protected by law. The
information is solely intended for the individual or the entity it
is addressed to. If you are not the intended recipient of this
message, you are not authorized to read, forward, print, retain,
copy or disseminate this message or any part of it. If you have
received this e-mail in error, please notify the sender immediately
by return e-mail and delete it from your computer."

--~------------------------------------------------------------------
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>
--~--