[Petal] Attributes with dashes
Olaf Buwen
olaf at buwen.de
Tue Jan 4 14:55:35 GMT 2005
Hi,
in one of my projects, I found that
"tal:attributes='foo-bar data/foo/bar'" does not work, although XML
allows attributes with dashes.
As a workaround, I modified the regular expression in
Petal/Canonicalizer/XML.pm, line 547 from
/^\s*((?:\w|\:)+)\s+(.*?)\s*$/
to
/^\s*((?:[-\w]|\:)+)\s+(.*?)\s*$/
so that dashes now are recognized.
Is there any interest for this patch to be included in the next release?
Regards
More information about the Petal
mailing list