<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>It has something to do with the rules matching on an attribute.
I've modified a bit the Schematron file to match on the element
that contains that attribute and the tests pass. I've attached
these changed resources (actually just <i>media-type.sch</i> is
changed).</p>
<p>I'm not sure why it behaves like that. I've reproduced the issue
with the command line XSpec 2.1.4 latest release. I recommend
asking a question in an issue on the XSpec GitHub project [1] or
on the email address <a class="moz-txt-link-abbreviated" href="mailto:xspec-users@googlegroups.com">xspec-users@googlegroups.com</a> . I'm sure the
project maintainers will know the cause and give you a
recommendation.<br>
</p>
<p>[1] <a class="moz-txt-link-freetext" href="https://github.com/xspec/xspec/issues">https://github.com/xspec/xspec/issues</a><br>
</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 7/2/2021 11:28 PM, Gary Gapinski
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:74b5b5eb-bd69-7046-34d7-01771ee9bdce@garygapinski.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p>Hello, all:</p>
<p>I have found creation of XSPec unit tests for Schematron
assertions a bit puzzling. I frequently manage to create
Schematron which works correctly for instance document
validation but related XSpec scenarios produce incorrect
results. I may be repeatedly doing something erroneous but have
yet to determine what.</p>
<p>I am using <oXygen/> XML Editor 23.1, build 2021061407
which includes an XSpec 1.6.0 framework.</p>
<p>An exemplar of my problem can be seen at
<a class="moz-txt-link-freetext"
href="https://github.com/18F/fedramp-automation/commit/d023c719754ee5ed14dfc8a8991fbfafb82ff18b"
moz-do-not-send="true">https://github.com/18F/fedramp-automation/commit/d023c719754ee5ed14dfc8a8991fbfafb82ff18b</a>.
The Schematron (<tt>media-type.sch</tt>) works correctly with an
instance document (<tt>media-type.xml</tt>) but both XSpec
scenarios (in <tt>media-type.xspec</tt>) fail when the inbuilt
"Run XSpec Test" translation scenario is used.<br>
</p>
<p>Any and all suggestions are welcome.</p>
<p>Best regards,</p>
<p>Gary<br>
</p>
<div class="moz-signature">-- <br>
<title>Gary Gapinski's contact information</title>
<address style="font-size: smaller; text-decoration:none;"
xml:lang="en">
<div>Gary Gapinski</div>
<div>℡ <a style="text-decoration:none;"
href="tel:+1-216-820-1849" title="Telephone number"
aria-label="Telephone number" moz-do-not-send="true">+1
216 820 1849</a></div>
<div>℡ <a style="text-decoration:none;"
href="sip:gary@garygapinski.com" title="SIP URI (VoIP)"
aria-label="SIP URI (VoIP)" moz-do-not-send="true">gary@garygapinski.com</a></div>
<div>✉ <a style="text-decoration:none;"
href="mailto:gary@garygapinski.com" title="Internet Email
Address" aria-label="Internet Email Address"
moz-do-not-send="true">gary@garygapinski.com</a></div>
</address>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-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="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
</blockquote>
</body>
</html>