You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2008/03/19 17:36:15 UTC
DO NOT REPLY [Bug 44635] New: XSLT split one CDATA block into several
https://issues.apache.org/bugzilla/show_bug.cgi?id=44635
Summary: XSLT split one CDATA block into several
Product: Ant
Version: 1.6.5
Platform: PC
OS/Version: Windows XP
Status: NEW
Keywords: XSLTBug
Severity: major
Priority: P3
Component: Core tasks
AssignedTo: notifications@ant.apache.org
ReportedBy: vitia@mail.ru
Hello.
I have a problem with simple xslt transformation.
<?xml version="1.0" encoding="windows-1251"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="UTF-8" indent="no"
omit-xml-declaration="no" cdata-section-elements="string"/>
<xsl:template match="*">
<xsl:copy>
<xsl:for-each select="@*">
<xsl:copy/>
</xsl:for-each>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
It's copy one xml-doc to another.
I try to copy the next document
<?xml version="1.0" encoding="UTF-8"?>
<property name="propertyComment">
<string><![CDATA[leave blank for no input, "console" to read from the
console window,
and any path to a file to read from that file]]></string>
</property>
And this is the ant-script, that i use:
<?xml version="1.0" encoding="windows-1251"?>
<project default="help" basedir=".">
<target name="help">
<xslt basedir="." destdir=".\1\" style="test.xsl" force="true"
in="test.xml" out="test.xml.new" processor="trax">
</xslt>
</target>
</project>
In the output dcument I have several CDATA instead of one in source document:
<?xml version="1.0" encoding="UTF-8"?>
<property name="propertyComment">
<string><![CDATA[leave blank for no input, "con]]><![CDATA[sole" to
read from the console w]]><![CDATA[indow,
and any path to a file to]]><![CDATA[ read from that file]]></string>
</property>
When I use Microsoft xslt processor it outputs only one CDATA block in this
case.
Why trax output several CDATA blocks?
Can I fixed it?
All documents that i've mentioned are attached.
Best regards,
Victor
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 44635] XSLT split one CDATA block into several
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44635
Peter Reilly <pe...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Peter Reilly <pe...@apache.org> 2008-03-22 07:44:01 PST ---
This is an ant bugzilla site, not an xslt site.
please direct this request for infomration to the correct site.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.