[Xml-compile] Re: Missing space in response
    Mark Overmeer 
    mark at overmeer.net
       
    Sat Aug 23 13:07:38 BST 2008
    
    
  
* Allan Wind (allan at insurancedesk.com) [080822 21:49]:
> The mailing list did not response my submission, so there was no easy
> way to follow on my initial question.
> but if I read the spec correctly tokens can contain embedded single
> spaces.  Schema/BuiltInTypes.pm does:
> 
> $builtin_types{token} =
> $builtin_types{NMTOKEN} =
> sub _collapse { $_ = $_[0]; s/^\s+//; s/\s+$//; s/(\s)$1+/$1/g; $_ };
You are correct that collapse was implemented wrongly, as were the other
whitespace facets :-(
The 'token' accepts blanks, and NMTOKEN does not... so the implementation
was correct for the latter only.
-- 
Thanks!
               MarkOv
------------------------------------------------------------------------
       Mark Overmeer MSc                                MARKOV Solutions
       Mark at Overmeer.net                          solutions at overmeer.net
http://Mark.Overmeer.net                   http://solutions.overmeer.net
    
    
More information about the Xml-compile
mailing list