cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shan...@apache.org
Subject cvs commit: xml-cocoon2/src/documentation/xdocs/userdocs/xsp logicsheet.xml
Date Tue, 18 Jun 2002 04:24:49 GMT
shannon     2002/06/17 21:24:49

  Modified:    src/documentation/xdocs/userdocs/xsp logicsheet.xml
  Log:
  fixed validation problems
  
  Revision  Changes    Path
  1.4       +14 -13    xml-cocoon2/src/documentation/xdocs/userdocs/xsp/logicsheet.xml
  
  Index: logicsheet.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/documentation/xdocs/userdocs/xsp/logicsheet.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- logicsheet.xml	7 Mar 2002 16:06:44 -0000	1.3
  +++ logicsheet.xml	18 Jun 2002 04:24:49 -0000	1.4
  @@ -62,7 +62,7 @@
     <p>Here's a simple XML file:</p>
     
   <source>
  -<strong>greeting.xml</strong>
  +greeting.xml
   <![CDATA[
   <?xml version="1.0"?>
   
  @@ -72,8 +72,9 @@
     <p>...and here's the XSL stylesheet that will transform it into an HTML file
     similar to the one we started this section with:</p>
   
  +
   <source>
  -<strong>greeting.xsl</strong>
  +greeting.xsl
   <![CDATA[
   <?xml version="1.0"?>
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  @@ -106,7 +107,7 @@
     of this file is transformed to HTML by the same XSL stylesheet as above:</p>
   
   <source>
  -<strong>greeting2.xml</strong>
  +greeting2.xml
   <![CDATA[
   <?xml version="1.0"?>
   
  @@ -131,9 +132,9 @@
     logicsheet.  There are two files shown below.  The first is an XSP file
     that uses a custom logicsheet, logicsheet.greeting.xsl, which is the second
     file shown below.</p>
  -
  +  
   <source>
  -<strong>greeting3.xml</strong>
  +greeting3.xml
   <![CDATA[
   <?xml version="1.0"?>
   
  @@ -148,9 +149,8 @@
   </xsp:page>
   ]]></source>
   
  -
   <source>
  -<strong>logicsheet.greeting.xsl</strong>
  +logicsheet.greeting.xsl
   <![CDATA[
   <?xml version="1.0"?>
   <xsl:stylesheet
  @@ -246,24 +246,25 @@
     processing instruction for each file that uses the logicsheet.  The
     second way is to declare logicsheet in the cocoon.xconf file.
     These declarations take the form</p>
  -<source>
  +<source><![CDATA[
   <builtin-logicsheet>
     <parameter name="prefix" value="&lt;logicsheet's prefix&gt;"/>
     <parameter name="uri" value="&lt;logicsheet's namespace URI&gt;"/>
     <parameter name="href" value="&lt;URL to file&gt;"/>
   </builtin-logicsheet>
  -</source>
  +]]></source>
   
     <p>Cocoon's pre-defined logicsheets are already declared in this file.  For
     instance, the declaration of the XSP request taglib is the following:</p>
  -<source>
  +<source><![CDATA[
   <builtin-logicsheet>
     <parameter name="prefix" value="xsp-request"/>
     <parameter name="uri" value="http://apache.org/xsp/request/2.0"/>
     <parameter name="href"
                value="resource://.../markup/xsp/java/request.xsl"/>
   </builtin-logicsheet>
  -</source>
  +]]></source>
  +
     <p>This line associates the <strong>http://apache.org/xsp/request/2.0</strong>

     namespace with the logicsheet named in the URL. This URL points to a file 
     that is stored in the cocoon.jar. To use the request taglib, you must 
  @@ -287,14 +288,14 @@
     Hello, World! example above, and if the logicsheet were stored (on a UNIX 
     filesystem) in the location /cocoon/logicsheets/logicsheet.greeting.xsl, 
     we'd add this line to cocoon.xconf:</p>
  -<source>
  +<source><![CDATA[
   <builtin-logicsheet>
     <parameter name="prefix" value="greeting"/>
     <parameter name="uri" value="http://duke.edu/tutorial/greeting"/>
     <parameter name="href"
                value="file:///cocoon/logicsheets/logicsheet.greeting.xsl"/>
   </builtin-logicsheet>
  -</source>
  +]]></source>
   
     <p>There are some very important differences between using the &lt;?xml-logicsheet?>

     processing instruction vs. the cocoon.properties entry to apply a logicsheet.
  
  
  

----------------------------------------------------------------------
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