|
|
Rank: Newbie
Joined: 3/18/2008 Posts: 2 Location: Chicago
|
I am trying to implement Schematron using the AltovaXML command line utility so that I can run hundreds of Schematron analysis reports at once.
I followed the example at: http://xml.ascc.net/schematron/1.5/report1-5/schematron-report.html
The first and third steps complete without error, however when performing the second step, I receive the error:
Root element in a simplified stylesheet requires the [xsl:]version attribute at xsl:stylesheet
The xsl file starts out as follows:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <xsl:stylesheet xmlns:axsl="http://www.w3.org/1999/XSL/TransformAlias" xmlns:file="java.io.File" xmlns:sch="http://www.ascc.net/xml/schematron" version="1.0" file:dummy-for-xmlns=""> <xsl:output method="html"/>
So the version number is there?
Any suggestions are greatly appreciated!
Thanks,
Brad
|
|
Rank: Newbie
Joined: 10/28/2002 Posts: 1,283 Location: AT
|
Hi Brad,
you are missing a declaration for the xsl namespace in your stylesheet i.e.
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
try this:
Code:
<xsl:stylesheet xmlns:axsl="http://www.w3.org/1999/XSL/TransformAlias" xmlns:file="java.io.File" xmlns:sch="http://www.ascc.net/xml/schematron" version="1.0" file:dummy-for-xmlns="" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html"/>
... ...
|
|
Rank: Newbie
Joined: 3/18/2008 Posts: 2 Location: Chicago
|
Thanks for the reply!
I tried using your code. The error message went away, but the results were just a string of data--not the HTML output that I expected. Perhaps it is a difference between the XSL and AXSL?
|
|
|
guest |