|
Subject: Re: cdata was: XSL and HTML From: Guy_Murphy@xxxxxxxxxx Date: Fri, 15 Jan 1999 10:10:20 +0000 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: cdata was: XSL and HTML, David Carlisle | Thread | Re: cdata was: XSL and HTML, David Carlisle |
| Re: Existing XSL processors, anette . engel | Date | Re: GOTCHA!, Oren Ben-Kiki |
| Month |