David Maus @dmaus@dmaus.name

markup professional · overall friendly chap · kayak y tango

Homepage

https://dmaus.name

OpenPGP

0x52C8890C43C0FBCF

ORCiD

https://orcid.org/0000-0001-9292-5673

  • Notes
  • Articles
  • Remote follow
David Maus's avatar
David Maus
@dmaus@dmaus.name

The next version of SchXslt2 will support a processing instruction schxslt.declare-param to aid writing ISO Schematron w/ abstract patterns. I chose a processing instruction over reusing the sch:param element to not interfere with the current standardisation process.

If the processing instruction is used, the transpiler terminates with an error if a declared parameter is not provided, and if a provided parameter ist not declared.

https://git.sr.ht/~dmaus/schxslt2/tree/main/item/src/main/resources/content/transpile.xsl#L186

#schematron #schxslt

~dmaus/schxslt2 (main): src/main/resources/content/transpile.xsl - sourcehut git git.sr.ht
  • permalink
  • interact from your instance
  • 1 year, 3 months ago
  • 1 like
  • 1 reply
Likes
@divclassbutton@hachyderm.io
David Maus's avatar
David Maus
@dmaus@dmaus.name

in reply to this object

...and while I am at it: Next version will also get a transpiler parameter schxslt:expand-text that enables text value template expansion in the validation stylesheet.

https://git.sr.ht/~dmaus/schxslt2/commit/0f2672c76224ddb983c5c9d4a97157055e42f1e1

See also https://github.com/Schematron/schematron-enhancement-proposals/issues/49

Text Value Templates in messages · Issue #49 · Schematron/schematron-enhancement-proposals GitHub
  • permalink
  • 1 year, 3 months ago
  • 1 reply
David Maus's avatar
David Maus
@dmaus@dmaus.name

in reply to this object

And regarding https://github.com/Schematron/schematron-enhancement-proposals/issues/64: You already can use attribute value templates, next version of SchXslt2 provides a global variable schxslt:phase to the validation stylesheet.

Issues · Schematron/schematron-enhancement-proposals GitHub
  • permalink
  • 1 year, 3 months ago
Powered by microblog.pub 2.0.0+dev and the ActivityPub protocol. Admin.