Skip to content

Instantly share code, notes, and snippets.

@rmzelle
Created August 23, 2014 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmzelle/573df55275a606c20aa0 to your computer and use it in GitHub Desktop.
Save rmzelle/573df55275a606c20aa0 to your computer and use it in GitHub Desktop.
Schematron rule
sch:ns [ uri = "http://purl.org/net/xbiblio/csl" prefix = "cs" ]
sch:pattern [
name = "Unused macros"
sch:rule [
context = "//cs:macro[@name]"
sch:assert [
test = "(@name = //cs:key/@macro) or (@name = //cs:text/@macro)"
"This macro is never used."
]
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment