cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-cocoon2/xdocs faq.xml
Date Wed, 18 Jul 2001 14:23:12 GMT
dims        01/07/18 07:23:12

  Modified:    xdocs    faq.xml
  Log:
  More faq's from John Morrison. (Thanks John).
  
  Revision  Changes    Path
  1.6       +85 -0     xml-cocoon2/xdocs/faq.xml
  
  Index: faq.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/xdocs/faq.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- faq.xml	2001/07/18 11:11:38	1.5
  +++ faq.xml	2001/07/18 14:23:12	1.6
  @@ -199,4 +199,89 @@
   </source>
    </answer>
   </faq>
  +<faq>
  + <question>I don't want to hand edit the sitemap.  Are there any
  +   tools?</question>
  + <answer>
  +   <p>Try <fork href="http://outerthought.org/cocoon/resources/cocoon2/">this</fork>
  +     by Bruno Dumon.</p>
  + </answer>
  +</faq>
  +<faq>
  + <question>How do I create some content which isn't directly visible to
  +   everyone?</question>
  + <answer>
  +   <p>Put the content in an internal pipeline...</p>
  +   <source>
  +     <![CDATA[
  +<map:pipelines>
  + <map:pipeline internal-only="true">
  +   <map:match pattern="int">
  +     <map:generate src="docs/description.xml"/>
  +     <map:serialize type="xml"/>
  +   </map:match>
  + </map:pipeline>
  + <map:pipeline>
  +   <map:match pattern="desc.html">
  +     <map:generate src="cocoon:/int"/>
  +     <map:transform src="stylesheets/description2html.xsl"/>
  +     <map:serialize type="html"/>
  +   </map:match>
  + </map:pipeline>
  +</map:pipelines>
  +     ]]>
  +   </source>
  + </answer>
  +</faq>
  +<faq>
  + <question>How can I concatenate two xml files?</question>
  + <answer>
  +   <source>
  +     <![CDATA[
  +<map:pipelines>
  + <map:pipeline internal-only="true">
  +   <map:match pattern="one">
  +     <map:generate src="docs/one.xml"/>
  +     <map:serialize type="xml"/>
  +   </map:match>
  +   <map:match pattern="two">
  +     <map:generate src="docs/two.xml"/>
  +     <map:serialize type="xml"/>
  +   </map:match>
  + </map:pipeline>
  + <map:pipeline>
  +   <map:match pattern="desc.html">
  +     <map:aggregate element="newRootElement">
  +       <map:part src="cocoon:/one" element="firstXMLfile"/>
  +       <map:part src="cocoon:/two" element="secondXMLfile"/>
  +     </map:aggregate>
  +     <map:transform src="stylesheets/merge2html.xsl"/>
  +     <map:serialize type="html"/>
  +   </map:match>
  + </map:pipeline>
  +</map:pipelines>
  +     ]]>
  +   </source>
  +   <p>Where the element attribute names are replaced with something more
  +     meaningful!  Note that the map:part element attributes can be left off,
  +     which results in the two parts being placed one immediately after the
  +     other.</p>
  + </answer>
  +</faq>
  +<faq>
  + <question>I want to use the XXX matcher/serializer/selecter/etc but there's no
  +   examples :(</question>
  + <answer>
  +   <p>If you've checked the sample webapps which come with Cocoon, and you've
  +     looked in the documentation (which does exist!) check both the user and
  +     dev archives.  If it hasn't been resolved before <strong>first</strong>
  +     email the user group and, after a <strong>reasonable</strong> (ie 1 or
2
  +     days) length of time (remember not everyone lives in your timezone) email
  +     the dev group. If neither generate a suitable answer - use the source ;)</p>
  +   <p>Please don't cross-post to both the user and dev groups - very few people
  +     like getting bombarded!</p>
  +   <p>Oh, and once you do get it working - how about documenting it and
  +     contributing it back to the group?</p>
  + </answer>
  +</faq>
   </faqs>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message