xml editor

   XML Editor
   XML Author
      DITA Editor
      DocBook Editor
      TEI Editor
      XHTML Editor
      Schema Editor
      XML Schema Editor
      RelaxNG Editor
   XQuery
   SVN Client
      Office Open XML
      XSL:FO Editor
      SVG Editor
      WSDL Editor
Supported platforms
Compatible with Windows7 & Mac OS X Snow Leopard
Ready for
data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Copy CDATA nodes from XML to XML format w/ XALAN


Subject: RE: [xsl] Copy CDATA nodes from XML to XML format w/ XALAN
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Sun, 3 Mar 2002 21:34:50 -0000

> I am trying to transform XML to XML with included CDATA and
> keep that CDATA node enclosed with a CDATA tag.
>

CDATA is not part of the XML information set or of the XPath data model.
It's simply a convenient way of entering text that avoids having to escape
all the "<" characters as "&lt;". Therefore, CDATA boundaries can't be
preserved through the transformation.

But you can indicate that you want CDATA used in the output using the
cdata-section-elements attribute of xsl:output.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx


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



Current Thread
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2009 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>® XML Editor