[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] xmllint -format, xsltproc and CDATA section


Subject: [xsl] xmllint -format, xsltproc and CDATA section
From: Taro Ikai <tikai@xxxxxxxxxxxx>
Date: Wed, 27 Aug 2003 15:42:18 -0400

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



Current Thread
Keywords