Philip Mak wrote:
>
> A greater than sign inside an attribute passed to an XMLSub will cause an
> error. This happens even if the greater than sign is enclosed in quotes. I
> would think that the parser should be able to distinguish a > inside
> quotes from the > that ends the XML tag.
>
> This works:
>
> <s:link href="author.asp">[Edit Author]</s:link>
>
> This does not work:
>
> <s:link href="author.asp" test=">">[Edit Author]</s:link>
>
I'll see if I can get this to work. But the parser is
pretty fast now, and it'll be a trick to get this to
work and keep it fast.
> BTW, is the following syntax allowed (using <%= %> inside an attribute of
> an XMLSub)?
>
> <s:link href="<%=$ENV{SCRIPT_URL}%>">Test</s:link>
>
Currently what it supported is this:
<s:link href="$ENV{SCRIPT_URL}">Test</s:link>
where it becomes:
&s::link({ href=>"$ENV{SCRIPT_URL}" }, "Test" });
Whenever I need to embed a ">" in a perl XMLSub, I just
get that in a variable first, and pass that in. If
this is enough for you, and you don't need the above
to work, let me know.
The args to a XMLSub are treated as perl expressions,
which is why one cannot do:
<s:link href=http://asdfdsaf >
because http://asdfsadf needs to be a quoted string in perl.
--Josh
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks Founder Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]