> From: Matt Sergeant [mailto:[EMAIL PROTECTED]]
> On Fri, 11 Aug 2000, Henrik Tougaard wrote:
> > With this simple .asp page I get an error:
> > 
> >     <Fiks:test Start="<b>"> </Fiks:test>
> > [My XMLSubMatch is set to Fiks:\w+  - the name of the 
> subroutine doesn't
> > matter]
> > 
> > It seems as if the '>' in the '<b>' argument confuses the parser.
> 
> [snip]
> 
> > Is this a (mis)feature or a parser bug?
> 
> parser bug - it should have died earlier at the < sign :-)
> 
> XML attributes can't contain "<" or "&" characters, or the 
> same quote that
> they are surrounded by. The following are the encodings you can use
> (and XMLSubsMatch needs to unravel):
> 
> <   =>  "&lt;"
> >   =>  "&gt;"
> &   =>  "&amp;"
> "   =>  "&quot;"
> '   =>  "&apos;"
> 
> Note that only "<" is needed for your example (since encoding the
> ">" isn't mandatory in XML generally).
> 
Well this does limit the usefullness of the XMLSubs feature.
I had hoped that it would be possbile to use any perl expression in
the attributes - as an easy way of giving arguments to the perl-sub.

Pity....

--
Henrik

Reply via email to