[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: xmllint -format, xsltproc and CDATA section

Subject: RE: xmllint -format, xsltproc and CDATA section
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 28 Aug 2003 09:17:37 +0100
xmllint
I don't understand. Why are you using a program (xmllint) that adds
whitespace to your XML if you don't want whitespace added to your XML?

Michael Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Taro Ikai
> Sent: 27 August 2003 20:42
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  xmllint -format, xsltproc and CDATA section
> 
> 
> Given:
> 
>     <programlisting><![CDATA[int i;]]></programlisting>
> 
> xmllint -format translates it a multi-line block as follows:
> 
>     <programlisting>
> <![CDATA[int i;]]>
>     </programlisting>
> 
> xsltproc, with <xsl:output method="xml" 
> cdata-section-elements="programlisting"/>, translates this to:
> 
>          <programlisting><![CDATA[
> TO_DATE (:fieldname, 'format')
>       ]]></programlisting>
> 
> The net result is that formatting by xmllint and XSLT is not 
> 'closed'. 
> Everytime I run the combination of xmllint -format and XSLT, 
> the CDATA 
> section
> gets longer by two lines (one line at the beginning and one 
> line at the 
> end).
> 
> Is there a way to get around this?
> 
> Taro Ikai
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.