[ http://issues.apache.org/jira/browse/XALANJ-1433?page=all ]

Brian Minchau updated XALANJ-1433:
----------------------------------

    Version: Latest Development Code
                 (was: 2.5Dx)

> apply-templates not working correctly on CDATA nodes
> ----------------------------------------------------
>
>          Key: XALANJ-1433
>          URL: http://issues.apache.org/jira/browse/XALANJ-1433
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan
>     Versions: Latest Development Code
>  Environment: Operating System: Windows NT/2K
> Platform: PC
>     Reporter: Antonio Arena
>     Assignee: Xalan Developers Mailing List
>  Attachments: TransformTest.java, cdata.zip, index.xml, layout.xsl, 
> system.xsl, test.jar, test.jar
>
> When selecting a template that has a CDATA as its text node, the text is not 
> displayed. At most the CDATA end tag is displayed. This bug occurs when the 
> node is built from the program; when the node is included in the originitaing 
> XML, no strange behavior. The template to look for in the system.xsl file is 
> ef:[EMAIL PROTECTED]'text/plain']. I expect the CDATA section to be emitted 
> inside 
> an HTML pre section. The ef:profile template usually doesn't emit text, it's 
> only there to show the strange behavior. The ef:user node is embedded in the 
> CDATA section!
> The com.enginframe.server.TransformTest class is used to mimic my Web Server 
> application when contructing the output:
> 1) Create DOM from XML file;
> 2) Add dynamic content to the DOM;
> 3) Apply stylesheets to DOM;
> 4) Emit DOM to client.
> To reproduce the bug, run my test class like this:
> java -cp xalan.jar;xercesImpl.jar;xml-apis.jar;test.jar 
> com.enginframe.server.TransformTest index.xml layout.xsl output.html
> The first input is the XML file; the second input is the XSL file; the third 
> input is the file to write to.
> I'm using Xalan 2.4.1 (latest from Jakarta) on Windows 2K with Java 1.3.1.
> This bug can also be reproduced on Linux with the same JDK. I also tried it 
> on 
> Xalan 2.3.1 with the same results.
> When using Xalan 1 inside Cocoon 1.8.2 or using my own classes, it works fine.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to