Re: Attributes with dashes

Chris Croome <chris-u/[email protected]>
Newsgroups gmane.comp.lang.perl.modules.petal
Message-ID <[email protected]>
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-u/[email protected]>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.