<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello Tony,<br>
<br>
In Oxygen version 17.1 you can use one attribute condition inside
the 'Preserve space' entries. So an entry like: *<span class="error">[@linefeed-treatment='preserve']
should now work. <br>
</span><br>
The XPath expressions can accept one of these type of attribute
conditions (default attribute values are not taken into account):
<ul class="ul">
<li class="li"><em class="ph i">element[@attr]</em> - Matches all
instances of the specified element that include the specified
attribute.</li>
<li class="li"><em class="ph i">element[not(@attr)]</em> - Matches
all instances of the specified element that do not include the
specified attribute.</li>
<li class="li"><em class="ph i">element[@attr = "value"]</em> -
Matches all instances of the specified element that include the
specified attribute with the given value.</li>
<li class="li"><em class="ph i">element[@attr != "value"]</em> -
Matches all instances of the specified element that include the
specified attribute and its value is different than the one
given.</li>
</ul>
<p>All the above restrictions and limitations are because we want
these expressions to run as fast as possible.</p>
<pre class="moz-signature" cols="72">Best regards,
Alex
--
Alex Jitianu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com">http://www.oxygenxml.com</a> </pre>
<div class="moz-cite-prefix">On 8/27/2015 2:30 PM, Tony Graham
wrote:<br>
</div>
<blockquote cite="mid:55DEF4CC.8040602@antenna.co.jp" type="cite">Is
there a way that a framework can make oXygen not reindent elements
<br>
that have 'linefeed-treatment="preserve"'?
<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/doc/versions/17.0/ug-editor/#topics/preferences-editor-format-xml.html">http://www.oxygenxml.com/doc/versions/17.0/ug-editor/#topics/preferences-editor-format-xml.html</a>
<br>
says that elements can be added to the 'Preserve space' list, but
<br>
"*[@linefeed-treatment='preserve']" isn't a 'simple node test' and
seems
<br>
to be being silently ignored.
<br>
<br>
Even if it did work, it can't be set by the 'focheck' framework.
<br>
<br>
(Separately, the ability to edit an item in the list, rather than
having
<br>
to make a new item based on an existing item then deleting the old
item,
<br>
seems to me to be useful.)
<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/doc/versions/17.0/ug-editor/#topics/format-and-indent-xml.html">http://www.oxygenxml.com/doc/versions/17.0/ug-editor/#topics/format-and-indent-xml.html</a>
<br>
says that it can be done with CSS using 'white-space: pre', but
<br>
<br>
*[linefeed-treatment=preserve] {
<br>
white-space: pre;
<br>
}
<br>
<br>
is having no effect on Text mode 'Format and Indent Element'
results.
<br>
<br>
(Separately again, is there a key combination to insert a line
break
<br>
that doesn't also insert indenting white-space?)
<br>
<br>
Regards,
<br>
<br>
<br>
Tony Graham.
<br>
</blockquote>
<br>
</body>
</html>