Subject: | Error in regexp of _attribute_value_of() + solution |
Due to a mistake in the regexps in the function
_attribute_value_of()
at lines 2961, 2972, 2976, if one specifies more than one character in
an attribute before an XSLT embedded tag (i.e. {@something}) it does not
get replaced.
For example, this will get correctly parsed (and {@name} replaced)
<img src='a{@name}' />
while the following will not
<img src='ab{@name}' />
due to the regexp
/\G[^\\]?\{(.*?[^\\]?)\}/
and similar ones at the lines declared above. To correct this problem it
is necessary to change
[^\\]?
into
[^\\]*
Have fun,
Alessio