dk.brics.xsugar
Class StylesheetChecker
java.lang.Object
dk.brics.xsugar.StylesheetChecker
public class StylesheetChecker
- extends Object
Consistency checker for XSugar stylesheets.
Checks the following requirements:
- terminals/nonterminals being used have been defined
- arguments are present on the other side (and that they have the same kind on both sides)
- arguments present multiple times in one production have same kind
- namespaces are declared
- namespace decls have unique URIs
- only empty prefix may have empty URI
- productions with unordered XML-sides cannot have alternatives or siblings
- regular expressions describing non-constant element/attribute names must be subsets of NCName
Method Summary |
void |
check(Stylesheet stylesheet)
Checks the given stylesheet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StylesheetChecker
public StylesheetChecker()
- Constructs a new checker.
check
public void check(Stylesheet stylesheet)
throws XSugarException
- Checks the given stylesheet.
- Parameters:
stylesheet
- stylesheet
- Throws:
XSugarException
- if an error is detected
Copyright © 2004-2007 Anders Møller & Claus Brabrand.