Schematron XPath format and indent inconsistencies (apparent
Posted: Wed Jun 03, 2015 12:25 am
I am working with a suite of Schematron files that have dependencies (by way of sch:include). When I format and indent the master Schematron files (the including files, not the included), complex XPath expressions in sch:let/@value and sch:assert/@test (but not, strangely, in sch:report/@test) return a well indented XPath expression, but all the color coding has been lost. E.g., this long but nicely colored XPath expression (color not illustrated)...
...becomes this, in monochrome:
But this is true only in the master schematron files (and not in sch:report/@test). In dependent schematron files, none of this indenting happens, and the color coding is retained.
I've tried various settings in Options / Preferences but nothing seems to change this behavior. My preference would be to have the best of both systems: to have automatic indenting (and clearly marked options in the Preferences to change this behavior) and the XPath expression color-coded. Any thoughts? I'm running version 17.0 build 2015043018 on Mac OS 10.9.5.
Code: Select all
<assert test="for $i in (1 to 10), $j in (2 to 50) return if (true()) then $i else $j">This
is a test</assert>
Code: Select all
<assert
test="
for $i in (1 to 10),
$j in (2 to 50)
return
if (true()) then
$i
else
$j"
>This is a test</assert>
I've tried various settings in Options / Preferences but nothing seems to change this behavior. My preference would be to have the best of both systems: to have automatic indenting (and clearly marked options in the Preferences to change this behavior) and the XPath expression color-coded. Any thoughts? I'm running version 17.0 build 2015043018 on Mac OS 10.9.5.