XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Schematron: Is @documents of an abstract pattern subject to parameterreplacement?

Hello all,

Schemtron 2016 added an optional @documents attribute to sch:pattern
that provides IRIs of subordinate document the rule contexts are
relative to. The @documents is also allowed on an abstract pattern as
per grammar in Annex A.

Am I right to assume that the @documents is subject to parameter
replacement when creating an instance of an abstract pattern?

I.e. does

#+BEGIN_SRC xml
  <schema xmlns="http://purl.oclc.org/dsdl/schematron"; queryBinding="xslt2">
    <pattern abstract="true" id="abstract-pattern" documents="'$filename'">
      <rule context="/">
        <assert test="true()"/>
      </rule>
    </pattern>
    <pattern is-a="abstract-pattern" id="instance">
      <param name="filename" value="foobar.xml"/>
    </pattern>
  </schema>
#+END_SRC

expands into

#+BEGIN_SRC xml
  <schema xmlns="http://purl.oclc.org/dsdl/schematron"; queryBinding="xslt2">
    <pattern abstract="true" id="abstract-pattern" documents="'$filename'">
      <rule context="/">
        <assert test="true()"/>
      </rule>
    </pattern>
    <pattern id="instance" documents="'foobar.xml'">
      <rule context="/">
        <assert test="true()"/>
      </rule>
    </pattern>
  </schema>
#+END_SRC

?

Best,
  -- David

-- 
David Maus M.A.

Mobile: +49-151-61506713
Www: http://dmaus.name


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS