<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
One of the issues I think is, that we internally use '<'to
escape the '<' and than when going back we can't differentiate
correctly between < typed in by the user, or <
generated by escaping code.<br>
<br>
We could try to fix that...<br>
<br>
Tom<br>
<br>
<div class="moz-cite-prefix">Op 3-5-2013 13:54, Julian Tenney
schreef:<br>
</div>
<blockquote
cite="mid:12C67A1EEC419342AF5E59DA31562C3F0C51764850@EXCHANGE1.ad.nottingham.ac.uk"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
p.msochpdefault, li.msochpdefault, div.msochpdefault
{mso-style-name:msochpdefault;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Calibri","sans-serif";}
span.emailstyle17
{mso-style-name:emailstyle17;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">It’ll be the
ones where the text is escaped and held on a node attribute,
rather than CDATAed and held as the node’s payload. It isn’t
easy to escape the XML, load it into the editor, edit it and
escape it again on the way out in those cases. You’re sort
of taking this to places it isn’t really intended to go.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Things are
better in bootstrap, because all text is CDATA, so HTML is
safe, but it’s not entirely safe in the toolkit.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif""
lang="EN-US">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif""
lang="EN-US"> <a class="moz-txt-link-abbreviated" href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a>
[<a class="moz-txt-link-freetext" href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</a>] <b>On
Behalf Of </b>Fay Cross<br>
<b>Sent:</b> 03 May 2013 12:26<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> [Xerte] Re: Query re formatting?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">I’ve just tried
< in text on a few pages and it’s displaying as text
for me. Is it a problem on just some pages types? Which
ones?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I can fix the
table <br> problem though. It’s adding brs in where
ever there are line breaks which currently even includes in
table markup. So, for example:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><table><tr><td>Hello</td></tr></table><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">... will look
fine but...<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><table><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><tr><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><td>Hello</td><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"></tr><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"></table><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">... will add in
lots of unnecessary brs.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I’ll get it to
ignore those between table tags.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:36.0pt"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif""
lang="EN-US">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif""
lang="EN-US"> <a moz-do-not-send="true"
href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a>
[<a moz-do-not-send="true"
href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</a>]
<b>On Behalf Of </b>Alistair McNaught<br>
<b>Sent:</b> 03 May 2013 10:04<br>
<b>To:</b> <a moz-do-not-send="true"
href="mailto:xerte@lists.nottingham.ac.uk">xerte@lists.nottingham.ac.uk</a><br>
<b>Subject:</b> [Xerte] Query re formatting?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">A colleague
and I have been working on creating a training module for
publishers on accessibility metadata. The metadata is in XML
format and we are trying to embed it in XOT pages to
illustrate different metadata and how it describes different
parts of a book cover.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">However it is
proving a bit unpredictable in the code. Can anyone advise
us on the following?<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">-- how does
text containing the < character to work? It seems
completely capricious, sometimes switching between
displaying the < and trying to interpret it as markup
even after you've got it all correct. In two editing
sessions, I was unable to form an understanding of what the
editor was doing to my text<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">-- the
application appears to insert a predictable (but not
controllable) number of blank lines (as <br>) above
each <table> inserted in a text box. Can this be
controlled?<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">Any advice
would be welcome. Obviously it’s brilliant to now have
tables working in XOT but it would be nice if they weren’t
so stuffed with BRs. And is there a way to understand
< behaviour or should we be using latex instead?<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">Many thanks<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">Alistair <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"> <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><b><span
style="color:#1F497D">Alistair McNaught</span></b><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">Senior Advisor
<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">JISC TechDis
Service<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt">Higher
Education Academy | Innovation Way | York | YO10 5BR<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><b><span
style="color:#1F497D">Mobile</span></b> - +44
(0)7870567659<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><b><span
style="color:#1F497D">Skype</span></b> –
alistair_techdis<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><b><span
style="color:#1F497D">Twitter</span></b> - @alistairm<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><b><span
style="color:#1F497D">Web</span></b> – <a
moz-do-not-send="true"
href="http://www.jisctechdis.ac.uk/">www.jisctechdis.ac.uk</a>
| <a moz-do-not-send="true"
href="http://www.scoop.it/t/inclusive-teaching-and-learning">www.scoop.it/t/inclusive-teaching-and-learning</a>
<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"> <o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-left:36.0pt"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif"">This email is confidential
and may be privileged. If you are not the intended recipient
please accept our apologies. Please do not disclose, copy,
or distribute information in this email nor take any action
in reliance on its contents: to do so is strictly prohibited
and may be unlawful. Please inform us that this message has
gone astray before deleting it. Please note that views
expressed in this email are those of the author and do not
necessarily represent those of the Higher Education Academy.
Please note that this e-mail has been created in the
knowledge that Internet e-mail is not a secure
communications medium. We advise that you understand and
observe this lack of security when e-mailing us. Although we
have taken steps to ensure this e-mail and attachments are
free from any virus, we advise that in keeping with good
computing practice the recipient should ensure they are
actually virus free. The Higher Education Academy Registered
No 4930131 <o:p></o:p></span></p>
</div>
<br>
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Xerte mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a>
<a class="moz-txt-link-freetext" href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
--
Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196
</pre>
</body>
</html>