<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello,<br>
      <br>
      I think the problem with the XSD 1.1  assertions is that you
      cannot add custom messages. There are some engine specific
      attributes that can be used to add custom messages. For Xerces you
      can set the <span style="color: rgb(0, 0, 0); font-family:
        monospace; font-size: 13.3333px; font-style: normal;
        font-variant: normal; font-weight: normal; letter-spacing:
        normal; line-height: 18px; orphans: auto; text-align: start;
        text-indent: 0px; text-transform: none; white-space: normal;
        widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px;
        display: inline !important; float: none; background-color:
        rgb(255, 255, 136);">message </span>attribute from the '<span
        style="color: rgb(0, 0, 0); font-family: monospace; font-size:
        13.3333px; font-style: normal; font-variant: normal;
        font-weight: normal; letter-spacing: normal; line-height: 18px;
        orphans: auto; text-align: start; text-indent: 0px;
        text-transform: none; white-space: normal; widows: 1;
        word-spacing: 0px; -webkit-text-stroke-width: 0px; display:
        inline !important; float: none;"><a class="moz-txt-link-freetext" href="http://">http://</a></span><span
        class="highlight" style="color: rgb(0, 0, 0); font-family:
        monospace; font-size: 13.3333px; font-style: normal;
        font-variant: normal; font-weight: normal; letter-spacing:
        normal; line-height: 18px; orphans: auto; text-align: start;
        text-indent: 0px; text-transform: none; white-space: normal;
        widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(255, 255, 136);">xerces</span><span
        style="color: rgb(0, 0, 0); font-family: monospace; font-size:
        13.3333px; font-style: normal; font-variant: normal;
        font-weight: normal; letter-spacing: normal; line-height: 18px;
        orphans: auto; text-align: start; text-indent: 0px;
        text-transform: none; white-space: normal; widows: 1;
        word-spacing: 0px; -webkit-text-stroke-width: 0px; display:
        inline !important; float: none;">.apache.org</span>' namespace.
      For Saxon you can set <span style="color: rgb(0, 0, 0);
        font-family: arial, helvetica, verdana, 'Lucida Grande',
        'Hiragino Kaku Gothic ProN', 'Hiragino Kaku Gothic Pro', Meiryo,
        sans-serif; font-size: 13.3333px; font-style: normal;
        font-variant: normal; font-weight: normal; letter-spacing:
        normal; line-height: 18px; orphans: auto; text-align: start;
        text-indent: 0px; text-transform: none; white-space: normal;
        widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px;
        display: inline !important; float: none; background-color:
        rgb(255, 255, 136);">message </span>attribute from the <span
        style="color: rgb(0, 0, 0); font-family: arial, helvetica,
        verdana, 'Lucida Grande', 'Hiragino Kaku Gothic ProN', 'Hiragino
        Kaku Gothic Pro', Meiryo, sans-serif; font-size: 13.3333px;
        font-style: normal; font-variant: normal; font-weight: normal;
        letter-spacing: normal; line-height: 18px; orphans: auto;
        text-align: start; text-indent: 0px; text-transform: none;
        white-space: normal; widows: 1; word-spacing: 0px;
        -webkit-text-stroke-width: 0px; display: inline !important;
        float: none;"><span class="Apple-converted-space"> </span></span><samp
        class="ph codeph" style="color: rgb(0, 0, 0); font-size:
        13.3333px; font-style: normal; font-variant: normal;
        font-weight: normal; letter-spacing: normal; line-height: 18px;
        orphans: auto; text-align: start; text-indent: 0px;
        text-transform: none; white-space: normal; widows: 1;
        word-spacing: 0px; -webkit-text-stroke-width: 0px;">'<a class="moz-txt-link-freetext" href="http://saxon.sourceforge.net/">http://saxon.sourceforge.net/</a></samp>'
      namespace.<br>
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/doc/versions/17.1/ug-editor/#topics/customizing-assert-error-messages.html">https://www.oxygenxml.com/doc/versions/17.1/ug-editor/#topics/customizing-assert-error-messages.html</a><br>
      <br>
      And I don't know how you can add messages in different languages.<br>
      <br>
      Best Regards,<br>
      Octavian<br>
      <br>
      On 13.01.2016 01:23, <a class="moz-txt-link-abbreviated" href="mailto:rleif@rleif.com">rleif@rleif.com</a> wrote:<br>
    </div>
    <blockquote cite="mid:7ec6a01d14d90$345f5f70$9d1e1e50$@rleif.com"
      type="cite">
      <pre wrap="">Tony Graham et al.
Why not use XSD1.1, which includes assertions?
Bob Leif

-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:oxygen-user-bounces@oxygenxml.com">oxygen-user-bounces@oxygenxml.com</a>
[<a class="moz-txt-link-freetext" href="mailto:oxygen-user-bounces@oxygenxml.com">mailto:oxygen-user-bounces@oxygenxml.com</a>] On Behalf Of Tony Graham
Sent: Tuesday, January 12, 2016 8:13 AM
To: <a class="moz-txt-link-abbreviated" href="mailto:oxygen-user@oxygenxml.com">oxygen-user@oxygenxml.com</a>
Subject: Re: [oXygen-user] Multilingual Schematron messages?

On 12/01/2016 12:24, Octavian Nadolu wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">The localization options are defined in the Schematron specification.
 You can use the diagnostic element to specify the message in multiple 
languages. <a class="moz-txt-link-freetext" href="http://www.schematron.com/iso/P8.html#GEN17">http://www.schematron.com/iso/P8.html#GEN17</a>

There is also an example of a multilingual schema in the Annex G of 
the Schematron specification:
<a class="moz-txt-link-freetext" href="http://www.schematron.com/iso/P27.html#GEN39">http://www.schematron.com/iso/P27.html#GEN39</a>
</pre>
      </blockquote>
      <pre wrap="">
I'm afraid that supports me rather than you.  I added that &lt;diagnostics&gt; to
the Schematron and referred to it from an existing &lt;assert&gt;.  The result was
the same as the last time that I tried it. The error message was the text
from the &lt;assert&gt; plus the text from both &lt;diagnostic&gt;:

    name="author-title" cannot be used when axf:document-info with
    name="xmp" is present. Diagnostics: [d1] A dog should have a
    bone. [d2] Das Hund muss ein Bein haben.

And that's with 'xml:lang="en"' on the &lt;fo:root&gt;.

Putting all of the languages in the one file isn't the best idea anyway
since (a) it becomes hard to identify when a change to the file is a change
to the text in the base language, and (b) the one file gets changed myriad
times as translations catch up with changes in the base text (which makes
'(a)' harder).

Regards,


Tony Graham.
--
Senior Architect
XML Division
Antenna House, Inc.
----
Skerries, Ireland
<a class="moz-txt-link-abbreviated" href="mailto:tgraham@antenna.co.jp">tgraham@antenna.co.jp</a>
_______________________________________________
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="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>

_______________________________________________
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="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>

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