Open GoogleCodeExporter opened 9 years ago
There is a confusion over whether sch:name allows @select or @path. Whatever the ISO standard says should be used. (Both can be supported to allow a transition, I suppose, if necessary.)
This was also reported by Burkhart Lingner:
Recently I came to use Schematron as an extension to existing XSD Schemas and I like it a lot. Recently I got a warning message that after some digging led me to believe that maybe there’s a bug in the iso_dsdl_include.xsl that I downloaded from http://www.schematron.com/implementation.html as part of the iso-schematron-xslt1.zip file.
When using a sch:name element with @path but without @select I get the message “Bad name element: XPath error. No XPath.” from the XSLT processor. I traced this message back to line 203 with
The name query is interpreted according to Production 14 of
XPath, as returning a string value. Typically, the select attribute
contains an expression returning an element node: the name
query takes the local or prefixed name of the node, not its value.
If I understand the situation correctly, all would be well by modifying iso_dsdl_include.xsl so as to use @path for the “string” parameter of sch-check:xpath-wf-message in line 205. Additionally, Annex J of the ISO draft should probably refer to @path instead of @select. However, I’m new to Schematron and I examined only parts of the XSLT, so I’d be happy to hear your assessment.
This is a bug for abstract patterns that affects IPDF. See https://code.google.com/p/epub-revision/issues/detail?id=194
Original issue reported on code.google.com by
UserExpe...@gmail.com
on 21 Apr 2014 at 1:26