Project

Profile

Help

Revision beaf15bc

Added by Debbie Lockett 8 months ago

Fix documentation bug #4466: XInclude processing (and URI query parameters with doc() generally)

View differences:

src/userdoc/sourcedocs.xml
928 928
          application, which means the XPath <code>id()</code> and <code>idref()</code> functions do
929 929
          not work.)</p>
930 930
      </li>
931
      <li>
932
        <p>For a document read using the <code>doc()</code> or <code>document()</code> functions,
933
          the parser (XMLReader) to be used can be specified using the query parameter
934
          <code>?parser=full.class.name</code> in the document URI -- but only if the
935
          <code>StandardURIResolver</code> is used, and the feature is enabled by calling
936
          <code>Configuration.setParameterizedURIResolver()</code> or by setting <code>-p:on</code>
937
          on the <code>Query</code> or <code>Transform</code> command lines. For example,
938
          <code>parser=org.ccil.cowan.tagsoup.Parser</code> causes John Cowan's TagSoup parser
939
          for HTML to be used.</p>
940
      </li>
931 941
    </ul>
932 942

  
933 943
    <p>Saxonica traditionally recommended use of the Xerces parser from Apache in preference to the version bundled
......
1386 1396

  
1387 1397
    <p>Saxon's standard <code>URIResolver</code> uses this technique if it has been enabled (for
1388 1398
      example by using <code>-p</code> on the command line). With this option, any URI containing
1389
      the query parameter <code>?val=strict</code> (for example,
1390
        <code>doc('source.xml?val=strict')</code>) causes strict validation to be requested for that
1391
      document, while <code>?val=lax</code> requests lax validation, and <code>?val=strip</code>
1399
      the query parameter <code>?validation=strict</code> (for example,
1400
      <code>doc('source.xml?validation=strict')</code>) causes strict validation to be requested for that
1401
      document, while <code>?validation=lax</code> requests lax validation, and <code>?validation=strip</code>
1392 1402
      requests no validation.</p>
1393 1403
    
1394 1404
    <p>XSLT 3.0 provides a standard way of requesting validation for individual source documents,

Also available in: Unified diff