Image:Validate-lmnl.xsl
From LMNLWiki
Validate-lmnl.xsl
(44KB, MIME type: application/xml)
The validate-lmnl.xsl XSLT 2.0 stylesheet validates a LMNL document against a Creole schema.
You can use this stylesheet to test whether a LMNL document is valid against a Creole schema by running it in several ways:
- with a Creole schema as the source document
- supply a LMNL document by specifying either the
$lmnl-docparameter (a URI) or the$lmnlparameter (a string) - with a XML document containing a LMNL document as the source document
- supply a schema by specifying the
$schema-docparameter (a URI); the string value of the source document is used as the LMNL string, which means any XML elements inside will be ignored - with only parameters
- use a dummy source document, or invoke the
validate-lmnltemplate, and supply either the$lmnl-docor$lmnlparameters, and the$schema-docparameter
Currently, it will only tell you whether or not the document is valid against the schema. Warning messages may help you understand where the problem lies, but they're not very helpful at the moment.
To use from your own code, use the pat:validate-lmnl() function; the first argument is a LMNL document as a string and the second the document node of a Creole schema document.
File history
Legend: (cur) = this is the current file, (del) = delete
this old version, (rev) = revert to this old version.
Click on date to see the file uploaded on that date.
- (del) (cur) 14:50, 20 September 2006 . . Jeni (44800 bytes) (no substantial changes; tests of atom validation)
- (del) (rev) 13:01, 16 September 2006 . . Jeni (37687 bytes) (changed name of "overlap" to "concur")
- (del) (rev) 20:38, 15 September 2006 . . Jeni (37737 bytes) (no substantive changes, just some new test cases)
- (del) (rev) 15:22, 11 September 2006 . . Jeni (34031 bytes) (implemented error reporting for name classes)
- (del) (rev) 20:39, 8 September 2006 . . Jeni (30689 bytes) (implemented better (though not perfect) error reporting)
- (del) (rev) 14:01, 8 September 2006 . . Jeni (26789 bytes) (The <code>validate-lmnl.xsl</code> XSLT 2.0 stylesheet validates a LMNL document against a Creole schema. You can use this stylesheet to test whether a LMNL document is valid against a Creole schema by running it in several ways: ; with a Creole sch)
- Edit this file using an external applicationSee the setup instructions for more information.
Links
The following pages link to this file:
