Bugzilla – Bug 893
String matching tests do not work
Last modified: 2012-01-19 12:14:12 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
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