[Schematron] Quick help please! (was Re: 404 on xslt 2 version)

David Carlisle d.p.carlisle at googlemail.com
Wed Feb 25 07:25:51 EST 2009


2009/2/25 Rick Jelliffe <rjelliffe at allette.com.au>

> tarted to do some testing on other processors than SAXON 9:
> (Xalan 2.7.1, Gestalt, MSXML)
>
> MSXML takes a very strict line with re-declaring variables within the
> same template: it won't let you do it.


That's an XSLT1/XSLT2 issue, it's an error in xslt1 but not in 2. msxml
doesn't do xslt2 does it?

>
>
> and this is the SAXON message from my ANT test run:
>
> schematron-run-test:
>     [xslt] Processing
> C:\Users\ricko\workspace\Schematron\test\include\master.xml to
> C:\Users\ricko\workspace\Schematron\temp\universalTests-xslt2.txt
>     [xslt] Loading stylesheet
> C:\Users\ricko\workspace\Schematron\temp\universalTests-xslt2.xsl
>     [xslt] Unknown file:10:42: Fatal Error! Could not find function:
> document-uri


Are you sure that's a saxon9 error (it doesn't follow the format I'd expect
from saxon where all error messages are prefixed by the error code)

If I mistype the function name saxon's error message looks like


Error at xsl:value-of on line 10 column 42 of bad.xsl:
  XPST0017: XPath syntax error at char 16 on line 10 in {document-uril(/)}:
    Unknown system function document-uril()


Are you sure that ant has fired saxon9 rather than saxon6 or xalan?
Getting an unknown function error on document-uri is what you'd expect
from those systems.


David
-- 
http://dpcarlisle.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.eccnet.com/pipermail/schematron/attachments/20090225/8939739d/attachment.html 


More information about the Schematron mailing list