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

Placeholder in abstract pattern replaced with wrong value #78

Open
dmj opened this issue Jan 24, 2019 · 0 comments
Open

Placeholder in abstract pattern replaced with wrong value #78

dmj opened this issue Jan 24, 2019 · 0 comments
Labels
bug Description of a bug

Comments

@dmj
Copy link
Member

dmj commented Jan 24, 2019

Running iso_abstract_expand.xsl on the following Schematron:

<schema xmlns="http://purl.oclc.org/dsdl/schematron">
  <pattern abstract="true" id="abstract">
    <rule context="$ab">
      <assert test="$a"/>
    </rule>
  </pattern>
  <pattern is-a="abstract" id="instance">
    <param name="a" value="x"/>
    <param name="ab" value="yz"/>
  </pattern>
  <properties/>
</schema>

Creates a Schematron where the character sequence '$a' in '$ab' was replaced with the value of the placeholder '$a'.

<schema xmlns="http://purl.oclc.org/dsdl/schematron">
  <!--Suppressed abstract pattern abstract was here-->
  <!--Start pattern based on abstract abstract--><pattern id="instance">
    <rule context="xb">
      <assert test="x"/>
    </rule>
  </pattern>
  <properties/>
</schema>

What happes is that iso_abstract_expand.xsl mistakenly recognizes the '$a' in '$ab' as placeholder $a.

@tgraham-antenna tgraham-antenna added the bug Description of a bug label Feb 25, 2020
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