mxp elements

Posted by Wodan on Sun 26 Sep 2004 07:50 PM — 4 posts, 16,187 views.

#0
I can't get this example from http://www.gammon.com.au/mushclient/mxp.htm to work:

<!ELEMENT colorbold '<COLOR &col;><B>' ATT='col=red'>

<colorbold>This text is in bold red</colortext>
<colorbold col=blue>This text is in bold blue</colortext>
<colorbold blue>This text is in bold blue</colortext>

I get all text in deault colours, not bold.

I tried this with \e[1z and \e[4z codes in front of all tags.

If this does work, could you give a full sequence that works, so with the escape codes etc..
thanks!

oh yeah, mushclient 3.50
Australia Forum Administrator #1
Turn up the MXP debugging level to see what it is reporting, eg. does it recognise the the element at all, does it give error messages?

This is wrong, for a start:

Quote:
<colorbold>This text is in bold red</colortext>


You have opened the tag with "colorbold" and closed it with "colortext".
Australia Forum Administrator #2
However, I note it is like that on my other web page. ;)
#3
ok, the debugging showed what was going wrong.

the mud replaced the & with &amp; so the &col was never seen, I didn't think of looking at the mud output because it worked on zmud (!) guess I found a bug there instead.

Thanks for the help!