If im appearing obtuse I appologise in advance; this is a bit of a challenge; nay a logic puzzle...

Given

action.pl?ref=a%20link&ref2=ref3&ref3=someaction

and the axml string:

<link action="<qd><qd arg="(qd)ref3(/qd)">ref2</qd></qd>">[qd]ref[/qd] +</link>

How could one obtain the result:
<a href="action.pl?action=someaction">a link</a>

using conventional cpan modules? And before you say it, I know this little puzzle is both stupid and useless, its just a little example of aXML blasphemic weirdness, and it parses correctly on my current implementation of aXML.

I'm still holding out hope that 1) someone might say hey that approach is interesting enough to get involved with the implementation of. 2) someone might have an idea which keeps the power of aXML and bridges the gap between it and existing standards. I'm afraid I simply don't know enough about cpan modules to bridge this gap myself... currently.


In reply to Transforming axml into hyperlinks by simonodell

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.