[Petal] Attributes with dashes

Chris Croome chris at webarchitects.co.uk
Tue Jan 4 15:23:14 GMT 2005


Hi

On Tue 04-Jan-2005 at 03:55:35PM +0100, Olaf Buwen wrote:
> 
> 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?

As long as it doesn't break anything I think this would be a good
reason for a new release :-)

Chris

-- 
Chris Croome                               <chris at webarchitects.co.uk>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   


More information about the Petal mailing list