cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ba...@locus.apache.org
Subject cvs commit: xml-cocoon/xdocs sqlprocessor.xml
Date Wed, 19 Apr 2000 16:37:30 GMT
balld       00/04/19 09:37:30

  Modified:    xdocs    sqlprocessor.xml
  Log:
  Fixed one last reference to cocoon:process.
  
  Revision  Changes    Path
  1.3       +1 -1      xml-cocoon/xdocs/sqlprocessor.xml
  
  Index: sqlprocessor.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/xdocs/sqlprocessor.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- sqlprocessor.xml	2000/04/13 10:43:50	1.2
  +++ sqlprocessor.xml	2000/04/19 16:37:30	1.3
  @@ -37,7 +37,7 @@
    ... other XML data ...
   &lt;/page&gt;</source>
   		<p>but this has the significant disadvantage that your database usernames and passwords
are by default accessible from the WWW. You may wish to protect the cdefs.xml file by restricting
access to the directory it lives in to the ip address(es) of your server(s).</p>
  -		<p>The other warning here is that if cocoon is operating on the www.example.com
site, it will try to process the cdefs.xml file before giving it to the XML parser. As long
as cdefs.xml has no cocoon:process PI, you will not have any trouble but it will be somewhat
slower than if cocoon is not involved. A simple trick to get around this is to rename the
file to an extension that does not trigger cocoon. I use .sxml, shorthand for Source XML.
Those of you with real operating systems can just make a link to the .xml file.</p>
  +		<p>The other warning here is that if cocoon is operating on the www.example.com
site, it will try to process the cdefs.xml file before giving it to the XML parser. As long
as cdefs.xml has no cocoon-process PI, you will not have any trouble but it will be somewhat
slower than if cocoon is not involved. A simple trick to get around this is to rename the
file to an extension that does not trigger cocoon. I use .sxml, shorthand for Source XML.
Those of you with real operating systems can just make a link to the .xml file.</p>
   		<p>In addition to the connection element, you can also have querydefs tags in your
connectiondefs node. A querydefs node must have a unique name attribute. query tags (described
below) may reference a querydefs tag in their defs attribute, which causes the query tag's
attributes to default to the attributes of the querydefs tag. This is useful for setting commonly
used groups of attributes. You may also specify a default querydefs. Here is an example:</p>
   <source>&lt;querydefs name="standard" doc-element="options" 
     row-element="option" connection="foo"/&gt;
  
  
  

Mime
View raw message