- From: Innovimax SARL <innovimax@gmail.com>
- Date: Sat, 5 May 2007 13:38:50 +0200
- To: "XProc WG" <public-xml-processing-model-wg@w3.org>
[[ 5.14 p:document Element A p:document reads an XML document from a URI. <p:document href = URI /> The document identified by the URI in the href attribute is loaded and returned. It is a dynamic error (err:XD0011) if the document referenced by a p:document element does not exist, cannot be accessed, or is not a well-formed XML document. The parser which the p:document element employs must be conformant Namespaces in XML. It must not perform validation. It must not perform any other processing, such as expanding XIncludes. Use the load step if you need to perform DTD-based validation or if you wish to load documents that are not namespace well-formed. ]] [[ A.1.9 Load The load step has no inputs but takes a option that specifies a URI of an XML resource that should be loaded and provided as the result. <p:declare-step type="p:load"> <p:output port="result"/> <p:option name="href" required="yes"/> </p:declare-step> Load attempts to read an XML document from the specified URI. If the document does not exist, or is not well-formed, the step fails. Otherwise, the document read is produced on the result port. ]] I see two points : 1) DTD Validation 2) Non namespace well-formed 1) could easily be an option "dtd-validation" (true/false). But we may need to have access to a catalog. 2) is already more tricky : --> Is there really case where a well-formed file could be converted to a namespace-aware-well-formed file ? The only thing I can imagine is proposing an option to replace ":" by another char (may be with colon-as-first-char-replacement and colon-replacement) But is this really worth ? Mohamed -- Innovimax SARL Consulting, Training & XML Development 9, impasse des Orteaux 75020 Paris Tel : +33 8 72 475787 Fax : +33 1 4356 1746 http://www.innovimax.fr RCS Paris 488.018.631 SARL au capital de 10.000 €
Received on Saturday, 5 May 2007 11:38:57 UTC