[Templates] template-toolkit and GD

Steve Sapovits sapovitss@gsicommerce.com
Wed, 6 Nov 2002 16:07:53 -0500


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
sapovitss@gsicommerce.com

> -----Original Message-----
> From:	merlyn@stonehenge.com [SMTP:merlyn@stonehenge.com]
> Sent:	Wednesday, November 06, 2002 2:44 PM
> To:	Mark Fowler
> Cc:	Matthew Pressly; templates@template-toolkit.org
> Subject:	Re: [Templates] template-toolkit and GD
> 
> >>>>> "Mark" == Mark Fowler <mark@twoshortplanks.com> 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
> <merlyn@stonehenge.com> <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
> templates@template-toolkit.org
> http://www.template-toolkit.org/mailman/listinfo/templates