Hi there,

I was playing around with XMLSubs and I hit a problem.
First the basics:
httpd.conf
---snip---
PerlSetVar XMLSubsMatch mobile:[\w\-]+
PerlSetVar XMLSubsPerlArgs 0
PerlSetVar XMLSubsStrict 0
---snip---

code that works:
---snip---
if ($test) {
%>
<mobile:href href="home.xml?t=l" icon="images/wallpapers.gif">Some Custom Link</mobile:href>
<mobile:separator/>
<%
}
%>
---snip---


and code that doesn't:
---snip---
if ($test) {
$Response->write(qq{<mobile:href href="home.xml?t=l" icon="images/wallpapers.gif">Some Custom Link</mobile:href>
<mobile:separator/>});
}
---snip---
the latter dies and complains about ``Missing right curly or square bracket at...''
The strange part is that at that particular spot, my code has been peculiarly transformed:
---debug output---
if ($gcompatible) {
$Response->write(qq{<% &mobile::href({ 'icon' => 'images/wallpapers.gif', 'href' => 'home.xml?t=l' }, 'Some Custom Link'); ; &Apache::ASP::WriteRef($main::Response, \('<mobile:separator/>});
}
---debug output---


No doubt I'm doing something wrong, but I hate jumping in and out of code in conditionals and loops, so I'm wondering what is it that I'm missing.

Can anyone enlighten me please ?
Thanks in advance.

Thanos Chatziathanassiou


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to