IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Schematron Options · View
BradAmodeo
Posted: Friday, April 18, 2008 8:16:07 PM
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
island
Posted: Monday, April 28, 2008 12:07:09 PM
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"/>

...
...

BradAmodeo
Posted: Tuesday, April 29, 2008 1:07:18 PM
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?
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.