<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Dear all,<br>
    <br>
    In Oxygen version 17.1 you have the possibility to specify "Line
    break" elements [1], that is to say elements for which we have to
    break the line before (or after) serializing them. The entries from
    this new list are a form of simplified XPath expressions that also
    accept one attribute condition (default attribute values are not
    taken into account):<em class="ph i"><br>
      <br>
      - element[@attr]</em> - Matches all instances of the specified
    element that include the specified attribute.<em class="ph i"><br>
      - element[not(@attr)]</em> - Matches all instances of the
    specified element that do not include the specified attribute.<em
      class="ph i"><br>
      - element[@attr = "value"]</em> - Matches all instances of the
    specified element that include the specified attribute with the
    given value.<em class="ph i"><br>
      - 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.<br>
    <br>
    We only accept one attribute condition because we want these
    expressions to run as fast as possible but nevertheless, it should
    suffice for writing expression that take into account the @break
    attribute. Hope it helps!<br>
    <br>
    [1]
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/doc/versions/17.1/ug-editor/#topics/preferences-editor-format-xml.html">https://www.oxygenxml.com/doc/versions/17.1/ug-editor/#topics/preferences-editor-format-xml.html</a><br>
    <pre class="moz-signature" cols="72">Best regards,
Alex
-- 
Alex Jitianu
&lt;oXygen/&gt;  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 12/17/2014 7:09 PM, Wendell Piez
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAAO_-xzD1O3eHwksuu1C8mpQrjnCy_SA26j04ttdPSBCG-aS5Q@mail.gmail.com"
      type="cite">
      <pre wrap="">Syd and Gerrit,

I am so behind! (on old messages to mailing lists) --

In the meantime, until oXygen does everything perfectly, could one
perhaps introduce the LF characters you want (in your mixed content)
using XQuery update (which works in oXygen's XQuery Builder), or
(gasp!) plain-text s/r over the raw XML?

Cheers, Wendell

On Tue, Oct 28, 2014 at 5:06 PM, Syd Bauman <a class="moz-txt-link-rfc2396E" href="mailto:syd@paramedic.wwp.neu.edu">&lt;syd@paramedic.wwp.neu.edu&gt;</a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">I agree with Gerrit; while all Andreas says is true, it is not an
argument against having an option for format-and-indent to
intelligently insert specific whitespace in front of (or after)
desired elements. (Not only are we suggesting this as an option, I
suspect all of us on the "I like this feature" side would agree it
should be an option that is off by default, for the very reasons
Andreas articulates :-)

E.g., adding two new tabs to Options &gt; Preferences / Editor / Format
/ XML / Element Spacing:

 1) Starts new line:
    Element names or XPath expressions for which the start-tag (or
    empty-element tag) should be forced to start on a new line (and
    then indented appropriately)

 2) Ends line:
    Element names or XPath expressions for which the start-tag (or
    empty-element tag) should be made the last token on a line

Both lists should start out empty, of course.

P.S. IIRC, last I checked (years ago) those were not "XPath
     expressions", they were not even full XSLT patterns, but rather
     were a very limited set of XSLT patterns. If that is still true,
     I would strongly recommend changing the wording slightly and
     putting some pop-up help or information right there.

</pre>
        <blockquote type="cite">
          <pre wrap="">I share Ute's wish for a format-and-indent in the text mode that
puts &lt;lb&gt; at the beginning of each line. <a class="moz-txt-link-freetext" href="xml:space">xml:space</a> does not seem
satisfying to me because it prevents Oxygen from doing any
format-and-indent. Find/replace is neither very elegant nor will it
give the result Syd has described.

I admit that the addition of whitespace in mixed content elements
where no whitespace exists is generally critical (and I like Oxygen
for not doing this!). However, any whitespace preceding or
following an &lt;lb&gt; can be treated as insignificant. Even

Oxy&lt;lb break="no"&gt;gen

Oxy
&lt;lb break="no"&gt;gen

are equivalent, except that a little more processing is needed to
extract the token "Oxygen" from such an encoding. So I find it
responsible to allow Oxygen---on explicit request---to add
whitespace befor &lt;lb&gt; elements. At least, it would be nice to get
Oxygen to put all the &lt;lb&gt;s at the beginning of the line that
*already have* whitespace before them.
</pre>
        </blockquote>
        <pre wrap="">_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
      </blockquote>
      <pre wrap="">


</pre>
    </blockquote>
    <br>
  </body>
</html>