You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by bu...@apache.org on 2015/05/07 22:28:51 UTC
[Bug 55710] XML headers strings are not parsed correctly within a
Rivet Page
https://bz.apache.org/bugzilla/show_bug.cgi?id=55710
--- Comment #1 from Ronnie Brunner <ro...@netcetera.ch> ---
For what it's worth: In Websh we allow properly nested tags and for cases where
they're not properly nested, you can escape them with a '\'. By default, Websh
uses braces for embedded scripts, but this can be configured to tags with
web::config putxmarkup tag
So, this is valid (and working as expected):
<?
set res {<?xml version='1.0'
encoding='utf-8'?><rows><page>0</page><total>0</total></rows>}
?>
but invalid would be (not properly nested:
<?
set res {?>xml version='1.0'
encoding='utf-8'<?<rows><page>0</page><total>0</total></rows>}
?>
Doesn't make much sense, I know, but to make that a valid statement (though
pretty useless), you'd escape as follows:
<?
set res {\?>xml version='1.0'
encoding='utf-8'\<?<rows><page>0</page><total>0</total></rows>}
?>
This could be an option for you to solve that rather than adding <rvt a
alternative ending up needing both rvt> and ?> in the same statement, just as
in this sentence. :-)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org