Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

13.3.9. Validating XsltActions


There are several different ways to configure the XsltAction validation. These are listed here with examples:
  1. Disabled (the default)
    This can be explicitly configured to false or omitted to disable validation.
    <property name="validation" value="false"/>
    Copy to Clipboard Toggle word wrap
  2. DTD
    <property name="validation" value="true"/>
    <property name="schemaLanguage" value="http://www.w3.org/TR/REC-xml"/>
    Copy to Clipboard Toggle word wrap
    Alernatively:
    <property name="validation" value="true"/>
    <property name="schemaLanguage" value=""/>
    Copy to Clipboard Toggle word wrap
  3. W3C XML Schema or RELAX NG
    <property name="validation" value="true"/>
    Copy to Clipboard Toggle word wrap
    Alternatively:
    <property name="validation" value="true"/>
    <property name="schemaLanguage" value="http://www.w3.org/2001/XMLSchema"/>
    Copy to Clipboard Toggle word wrap
    or
    <property name="validation" value="true"/>
    <property name="schemaLanguage" value="http://relaxng.org/ns/structure/1.0"/>
    Copy to Clipboard Toggle word wrap
  4. W3C XML Schema or RELAX NG with included schemaFile
    <property name="validation" value="true"/>
    <property name="schemaFile" value="/example.xsd"/>
    Copy to Clipboard Toggle word wrap
    or
    <property name="validation" value="true"/>
    <property name="schemaLanguage" value="http://www.w3.org/2001/XMLSchema"/>
    <property name="schemaFile" value="/example.xsd"/>
    Copy to Clipboard Toggle word wrap
    Aleternatively:
    <property name="validation" value="true"/>
    <property name="schemaLanguage" value="http://relaxng.org/ns/structure/1.0"/>
    <property name="schemaFile" value="/example.rng"/>
    Copy to Clipboard Toggle word wrap
Depending on whether or not validation is enabled there are several different outcomes to an XsltAction:
  1. If the XML is well-formed and valid:
    • The transformation will be performed.
    • The pipeline will continue.
  2. If the XML is malformed:
    • an error will be logged
    • SAXParseException -> ActionProcessingException
    • pipeline stops
  3. If the XML is well-formed but invalid:
    • If validation is not enabled:
      • The transformation may fail.
      • The pipeline will continue.
    • If validation is enabled:
      • an error will be logged
      • SAXParseException -> ActionProcessingException
      • pipeline stops

Nach oben
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2025 Red Hat