rspec/rules/S2322/xml/rule.adoc

60 lines
1.6 KiB
Plaintext

This rule allows validation of XML files against XML Schema using Xerces parser.
The "schemas" parameter can be set to:
* the namespace or short name of a built-in schema (ex: xhtml1-strict or \http://www.w3.org/1999/xhtml)
* the URL to a schema (ex: \http://www.springframework.org/schema/beans/spring-beans-3.2.xsd)
* the relative path to a schema on the filesystem (ex: schemas/xsd/mycustomschema.xsd)
Default value: ``++autodetect++``. In this case, the parser will try to load the schema based on the doctype or the namespace declaration in the document.
Files to be validated by the schema can be specified through inclusion pattern using the "filePattern" parameter.
Built-in schemas:
||DESCRIPTION||NAMESPACE OR SHORT NAME||DOCTYPE||
|XML|http://www.w3.org/2001/xml.xsd| |
|XML|http://www.w3.org/XML/1998/namespace| |
|XHTML1.0 Strict|http://www.w3.org/1999/xhtml| |
|XHTML1.0 Strict|xhtml1-strict|-//W3C//DTD XHTML 1.0 Strict//EN|
|XHTML1.0 Transitional|xhtml1-transitional|-//W3C//DTD XHTML 1.0 Transitional//EN|
|XHTML1.0 Frameset|xhtml1-frameset|-//W3C//DTD XHTML 1.0 Frameset//EN|
|XHTML1.1| |-//W3C//DTD XHTML 1.1 Strict//EN|
|JSF Core|http://java.sun.com/jsf/core| |
|JSF HTML Basic|http://java.sun.com/jsf/html| |
|JSF Facelets|http://java.sun.com/jsf/facelets| |
|Maven Project Model|http://maven.apache.org/POM/4.0.0| |
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
include::parameters.adoc[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]