[ http://nagoya.apache.org/jira/browse/XALANJ-2006?page=comments#action_56332 ] Remiu Wremlokov commented on XALANJ-2006: -----------------------------------------
> It could be that you are using an older version of Xalan-J without realizing. > Please read this FAQ entry: [1]. you are completely right. And many thanks for the quick answer! My jdk 1.4.03 installation used a built-in Xalan 2.4x. > cdata-section-elements splitted multiple > ---------------------------------------- > > Key: XALANJ-2006 > URL: http://nagoya.apache.org/jira/browse/XALANJ-2006 > Project: XalanJ2 > Type: Bug > Components: Xalan > Versions: 2.6 > Environment: Windows 2000 > Reporter: Remiu Wremlokov > Priority: Critical > > when using > xsl:output with cdata-section-elements > the output within CDATA ist splitted into several CDATA sections with the > exact length of 27. This does not happen, when ]]> CDATA termination > character combination appears, but happens always. > Intention of cdata-section-elements is to preserve the input and in this way > I really need it. > I know this issue or a similar one was opened several times and closed. I > know too, that in a strict manner this is no bug, because CDATA in a > technical way is actually preserved. > But I think, the behaviour contravenes quite strictly the original sense of > cdata-section-elements: If the output is required to be identical to the > input. E.g. especially in big documents the output is cluttered up with > endless CDATA-declarations and completely unreadable. > Working probe > XML input > <root> > > <cdata-to-preserve><![CDATA[123456789012345678901234567890]]></cdata-to-preserve> > </root> > Stylesheet > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > version="1.0"> > <xsl:output method="xml" version="1.0" standalone="yes" > encoding="utf-8" cdata-section-elements="cdata-to-preserve"/> > <xsl:template match="/ | @* | node()"> > <xsl:copy> > <xsl:apply-templates /> > </xsl:copy> > </xsl:template> > <xsl:template match="cdata-to-preserve"> > <cdata-to-preserve> > <xsl:value-of select="."/> > </cdata-to-preserve> > </xsl:template> > </xsl:stylesheet> > Output > <?xml version="1.0" encoding="utf-8" standalone="yes"?> > <root> > > <cdata-to-preserve><![CDATA[123456789012345678901234567]]><![CDATA[890]]></cdata-to-preserve> > </root> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nagoya.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
