Maybe I'm missing something here ... The XML spec. 

  http://www.w3.org/TR/REC-xml#sec-cdata-sect

says this in section 2.7:

  Within a CDATA section, only the CDEnd string is recognized as 
  markup, so that left angle brackets and ampersands may occur in 
  their literal form; they need not (and cannot) be escaped using 
  "<" and "&". CDATA sections cannot nest.  

In practice here, we've parsed many many XML documents using 
XML::Parser and related tools that accept this.

My apologies if I missed context here ...

----
Steve Sapovits
GSI Commerce
[EMAIL PROTECTED]

> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, November 06, 2002 2:44 PM
> To:   Mark Fowler
> Cc:   Matthew Pressly; [EMAIL PROTECTED]
> Subject:      Re: [Templates] template-toolkit and GD
> 
> >>>>> "Mark" == Mark Fowler <[EMAIL PROTECTED]> writes:
> 
> Mark> Okay, doesn't that mean that href is CDATA?  And hence 
> Mark> "foo?bar=baz&fred=barney" is right and "foo?bar=baz&amp;fred=barney"
> means 
> Mark> something else entirely?
> 
> Right.  CDATA needs & escaped as &amp; !
> 
> -- 
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777
> 0095
> <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
> See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl
> training!
> 
> _______________________________________________
> templates mailing list
> [EMAIL PROTECTED]
> http://www.template-toolkit.org/mailman/listinfo/templates

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates

Reply via email to