Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Validation stylesheet fails to run if assertion test contains literal curly brackets #85

Open
dmj opened this issue Apr 6, 2020 · 0 comments
Labels
bug Description of a bug

Comments

@dmj
Copy link
Member

dmj commented Apr 6, 2020

Example:

<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" xmlns="http://www.w3.org/1999/xhtml" queryBinding="xslt2">
  <s:ns prefix="c" uri="http://www.w3.org/ns/xproc-step"></s:ns>
  <s:pattern>
    <s:rule context="/">
      <s:assert test="result">Root element is not 'result'.</s:assert>
      <s:assert test="result/text()='}text{'">The text child of result is not 'text'.</s:assert> 
    </s:rule>
  </s:pattern>
</s:schema>

It is the report generation part: It creates a validation stylesheet that contains a literal copy of the @test attribute. The XSL processor interprets the curly brackets as AVTs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Description of a bug
Projects
None yet
Development

No branches or pull requests

2 participants