Closed sydb closed 1 week ago
You can use the clark notation and provide the namespace name instead of the prefix:
java -jar /path/to/saxon-he-12.5.jar -xsl:/path/to/file/below.xslt -it ?{http://www.tei-c.org/ns/atop}pBug="true()"
Excellent! Thank you, @dmj! Makes for ugly, clunky, parameter, but at least it works.
Using Saxon on the command line a parameter is passed in as a string by specifying
paraName=paramValue
(where the value may need to be quoted, especially if it has spaces, depending on your shell’s rules). A parameter is passed in as an expression by specifying?paraName=paramExpression
(same caveat on quoting). That is,But (I just learned)
Since the
atop
prefix is not bound, I think this means that the value ofatop:pDebug
can never be set. (At least, not with Saxon from the command line. It can be set when running Saxon HE 12.3 from oXygen 26.1. I wonder how they do that.)If you want to prove this to yourself, try
Here is the file below.xslt: