XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Alexander IllarionovSubject: msxml's cdata() alternative
Author: Alexander Illarionov
Date: 13 Sep 2005 06:31 AM
The task is to build xsl that generates html output from any xml document exactly the way msxml does (tree structure).
The problem is I cannot match CDATA sections to distinguish their output from text node's one.
msxml uses cdata(), but it's about to be just the parser's extension,
and I cannot use match="cdata()"
Is there another way to match CDATA for IE? Or may be a way that works in both IE and Mozilla to do that?
That is the question.

Postnext
Tony LavinioSubject: msxml's cdata() alternative
Author: Tony Lavinio
Date: 13 Sep 2005 09:05 AM
Once the data has reached an XSLT engine from the XML parser, there
is no difference between CDATA and text() nodes. CDATA is just a
convenience for the writer; internally it is converted into text, and
any identity as CDATA is gone. This is true for all XSLT processors,
and in fact, true for anything that consumes parsed XML.

Posttop
Ivan PedruzziSubject: msxml's cdata() alternative
Author: Ivan Pedruzzi
Date: 13 Sep 2005 09:24 AM

For your information IE uses a pre-dated XSLT language called XSL.
You can see the transformation source typing res://msxml.dll/DEFAULTSS.xsl in the address bar.

David Pawson has a nice FAQ on CDATA and XSLT
http://www.dpawson.co.uk/xsl/sect2/cdata.html

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.