|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: cdata was: XSL and HTML
Hi (notice the ommision of "David", so you don't feel obliged to reply :)
Thanks for clearing that up. As you went over the matter, yes I was aware
of the nature of CDATA, but confess I'd fallen into thinking of it in terms
of node type. Now while techinicaly there is no such thing as a CDATA node
type, practicaly a node that has it's data flagged as CDATA might
pragmatically be thought of as a CDATA node.
Granting this feature wouldn't erode you'er prefered practive in the use of
CDATA.
Now I'm struggling to understand this. In IE5b2 that has <xsl:cdata>
<xsl:template match="foo">
<p>
<![CDATA[ TEST ]]>
</p>
</xsl:template>
...produces...
<p>
TEST
</p>
...whereas...
<xsl:template match="foo">
<p>
<xsl:cdata> TEST </xsl:cdata>
</p>
</xsl:template>
...gives...
<p>
<![CDATA[ TEST ]]>
</p>
...How might I produce the second result without <xsl:cdata>?...genuine
question, not a rhetorical one.
As I undertand it, and what I stated in a previous post, placing <![CDATA[
]]> in the XSL flags CDATA in the XSL not the result tree. How can I get
CDATA
in the result tree?
Cheers
Guy.
xsl-list@xxxxxxxxxxxxxxxx on 01/15/99 01:55:44 AM
To: xsl-list@xxxxxxxxxxxxxxxx
cc: (bcc: Guy Murphy/UK/MAID)
Subject: Re: cdata was: XSL and HTML
> In a transformation how would you produce CDATA
You can't produce `CDATA' because there is no such thing as CDATA.
CDATA is a flag to a parser to use different rules, but the parsed
result should be the same: character data.
I can write `a' or <![CDATA[a]]> anywhere in my document and I should
get the same document tree. You get ___normal___ character data inside
a CDATA marked section.
The only way to change this is, as Oren said in his reply, to change this
and make <![CDATA no longer just a parser flag, but to really
generate a new type of node in the parsed result. (This is what happens
in the DOM).
[SNIP]
David
PS
I'm replying since you prefaced your question with `Hi David.'
but I'm really scared posting about arcane SGML details on a list that I
know is being monitored by people like PP and JC. I'm really a TeX
person you know....
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








