You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by tf...@apache.org on 2010/09/10 04:07:50 UTC

svn commit: r995640 - /db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/modules/generator/reference/configuration.xml

Author: tfischer
Date: Fri Sep 10 02:07:50 2010
New Revision: 995640

URL: http://svn.apache.org/viewvc?rev=995640&view=rev
Log:
Add documentation for entityReference element and resources directory

Modified:
    db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/modules/generator/reference/configuration.xml

Modified: db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/modules/generator/reference/configuration.xml
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/modules/generator/reference/configuration.xml?rev=995640&r1=995639&r2=995640&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/modules/generator/reference/configuration.xml (original)
+++ db/torque/torque4/trunk/torque-site/src/site/xdoc/documentation/modules/generator/reference/configuration.xml Fri Sep 10 02:07:50 2010
@@ -68,6 +68,9 @@
         - templates (only if template generators are used)
           - template_example.vm (name not fixed)
           - ... (other templates)
+        - resources (only if xsd schema validation is used for sources)
+          - schema_example.xsd (name not fixed)
+          - ... (other xsd schemata)
     </source>
     The sources are not considered part of the configuration; thus they do not
     appear here (If you have no idea where to put the sources,
@@ -90,6 +93,10 @@
 
   <options xsi:type="propertiesOptions" path="options.properties"/>
 
+  <entityReference
+      systemId="http://foo.org/bar.xsd"
+      resource="bar.xsd" />
+
   <output name="torque.om.dbObject" skipIfExists="true">
     <filenameOutlet
         xsi:type="javaOutlet"
@@ -127,6 +134,12 @@
     (more than one options file is possible).
     If the same option is defined in different files, the value in the 
     last file takes precedence.<br/>
+    The "entityReference" element tells an XML parser used to read
+    XML source files to resolve the systemId "http://foo.org/bar.xsd"
+    to the file bar.xsd in the resources directory.
+    More than one entityReference is possible.
+    If you do not use XML sources, XSD validation cannot be used
+    and defining entity references makes no sense.<br/>
     The output tags define which output files are generated.
     The name attribute of the output is used for debugging purposes and
     must be set. 



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org