NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 893 - String matching tests do not work
String matching tests do not work
Status: RESOLVED INTENTIONAL
Product: Validator.nu
Classification: Unclassified
Component: Schematron back end
HEAD
All All
: P2 normal
Assigned To: Nobody
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-19 10:49 CET by aurimas.dev
Modified: 2012-01-19 12:14 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aurimas.dev 2012-01-19 10:49:50 CET
I'm not sure if this is a bug or simply a feature that has not been implemented.

The citation style language (CSL) schema definition available at https://raw.github.com/citation-style-language/schema/v1.0/csl.rnc is supposed to check that only previously defined macros are used in element attributes (See "# Embedded Schematron rules to detect undefined macro-calls in cs:text, cs:key").

Using this rnc file, the following CSL style validates, while it should not: http://pastebin.com/fPnbTWdu
Comment 1 Michael[tm] Smith 2012-01-19 12:14:12 CET
I believe the reason is that the validator.nu backend doesn't support embedded schematron rules (because it uses jing, and jing does not support embedded schematron rules).

I think you'd need to extract the schematron rules, put them in a separate *.sch file, and then add the URI for that file along with the URI for the *.rnc one.

As far as getting embedded schematron support added to jing, you can file a feature request here:

http://code.google.com/p/jing-trang/issues/list