xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: AW: [xsl] Detecting carriage return and newline feed in XML Data


Subject: Re: AW: [xsl] Detecting carriage return and newline feed in XML Data
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Mon, 01 Nov 2004 11:26:53 +0100

Hi all,

XML input is processed by the XML parser before it gets anywhere near the
XSLT processor. The only way to prevent XML's normalization of whitespace
characters (whether in element or attribute content) is to write the
characters as character references, e.g. &#x0D; You can of course do that by
preprocessing the file in some non-XML-aware tool before submitting it to
the XML parser.

Are you really sure you need to do this? Somehow, you're not using XML the
way it was intended to be used and that's always bad news. I've forgotten
what your original problem was, if you ever explained it.

Michael Kay

Could the xm:space="preserve" attribute in the input xml or <xsl:preserve-space elements="*" /> element in the xsl be of any help here?


I missed the initial question too unfortunatily..

Grtz,
Geert


Current Thread
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor