[Templates] template-toolkit and GD
Mark Fowler
mark@twoshortplanks.com
Wed, 6 Nov 2002 19:42:12 +0000 (GMT)
Almost off topic for this list, but hey ho...
On 6 Nov 2002, Randal L. Schwartz wrote:
> HTML content and HTML tag parameters must all be HTML-entitized.
> Always. If you want to send "&" to the server on clicking a link, it
> MUST be encoded as "&" in the tag parameter. Anything else is wrong.
OTOH, isn't XHTML very different?
From http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
<!ENTITY % URI "CDATA">
<!-- a Uniform Resource Identifier, see [RFC2396] -->
<!ELEMENT a %a.content;>
<!ATTLIST a
%attrs;
%focus;
charset %Charset; #IMPLIED
type %ContentType; #IMPLIED
name NMTOKEN #IMPLIED
href %URI; #IMPLIED
hreflang %LanguageCode; #IMPLIED
rel %LinkTypes; #IMPLIED
rev %LinkTypes; #IMPLIED
shape %Shape; "rect"
coords %Coords; #IMPLIED
>
Okay, doesn't that mean that href is CDATA? And hence
"foo?bar=baz&fred=barney" is right and "foo?bar=baz&fred=barney" means
something else entirely?
Of course, I'm probably misreading the specs...please correct me where I'm
going wrong.
Mark.
--
s'' Mark Fowler London.pm Bath.pm
http://www.twoshortplanks.com/ mark@twoshortplanks.com
';use Term'Cap;$t=Tgetent Term'Cap{};print$t->Tputs(cl);for$w(split/ +/
){for(0..30){$|=print$t->Tgoto(cm,$_,$y)." $w";select$k,$k,$k,.03}$y+=2}