in reply to Re^19: aXML vs TT2
in thread aXML vs TT2

In aXML Template Output by aXML
< <
> >
& &
&lb; (
&rb; )
&lsb; [
&rsb; ]

As in... all data passes through unaltered, unless the parser recognises it as a valid tag to be processed, or it is one of the 4 extra specials needed to output aXML fragments without processing them.

Replies are listed 'Best First'.
Re^21: aXML vs TT2
by ikegami (Patriarch) on Oct 23, 2011 at 06:02 UTC

    Earlier, you said "&lt;db_select&gt;" outputs "<db_select>", but now you say it outputs "&lt;db_select&gt;".

    So how do I output "<db_select>" if db_select is a plugin? What about outputting "&lt;db_select&gt;"?

      Ok there's two issues here, outputting to a browser, and outputting a literal string.

      In the context of making the browser display <db_select>, you can use the specails the browser understands, &lt;db_select&gt;

      In the context of outputting the literal string the only way to do that that I can think of is using a <post_include> type plugin, and storing the string you want literally output without being processed, in a separate file which is included post processing immediately prior to exit.

      in the aXML ----------- <post_include>path/to/splarg</post_include> in 'splarg' ----------- <db_select> ...
        I recommend creating a builtin plugin "<lt>" that outputs "<", then one could use <lt></lt>db_select>.
        What's a "<post_include> type plugin"?