jvanzyl     2002/06/02 21:17:04

  Modified:    jelly/src/test/org/apache/commons/jelly/jsl example2.jelly
  Log:
  Fixing line endings, getting rid of tabs.
  
  Revision  Changes    Path
  1.2       +99 -1     
jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/jsl/example2.jelly
  
  Index: example2.jelly
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/jsl/example2.jelly,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- example2.jelly    25 May 2002 18:27:21 -0000      1.1
  +++ example2.jelly    3 Jun 2002 04:17:04 -0000       1.2
  @@ -1 +1,99 @@
  -<?xml version="1.0"?>
<j:jelly xmlns:j="jelly:core" xmlns:x="jelly:xml" 
xmlns:jsl="jelly:jsl">

<html>
<body>
       
  <x:parse var="doc">
  <simpleDocument 
author="James Elson">

    <title>I am a title!</title>

    <synopsis>Twas a dark, 
rainy night...</synopsis>

    <para>dfjsdfjsdf</para>
    <para>fdsfsdfhdsff gyuf 
uysgf ds</para>

  </simpleDocument>
  </x:parse>


<h1>Output of first 
stylesheet1</h1>

<jsl:stylesheet source="${doc}">

  <jsl:template match="/">
    
<jsl:applyTemplates/>
  </jsl:template>

  <jsl:template match="title">
    
<h2><jsl:applyTemplates/></h2>
  </jsl:template>


  <jsl:template match="para">
    
<p><jsl:applyTemplates/></p>
  </jsl:template>

  <jsl:template match="*">
    
<small><jsl:applyTemplates/></small>
  </jsl:template>

</jsl:stylesheet>

<hr />

<h1>Output of stylesheet2</h1>

<jsl:stylesheet source="${doc}">

  <jsl:template 
match="/">
    <jsl:applyTemplates/>
  </jsl:template>

  <jsl:template match="*">
    
<small><jsl:applyTemplates/></small>
  </jsl:template>

  <jsl:template match="title">
    <h2><jsl:applyTemplates/></h2>
  </jsl:template>


  <jsl:template match="para">
  
  <p><jsl:applyTemplates/></p>
  </jsl:template>

</jsl:stylesheet>

<hr />

<h1>Output of stylesheet3</h1>


<jsl:stylesheet source="${doc}">

  <jsl:template 
match="/simpleDocument">
   <h2>Book review</h2>
   <b>Title:</b> <jsl:applyTemplates 
select="title"/><br />
   <b>Author:</b> <jsl:applyTemplates select="@author"/><br />
 
  <b>Summary:</b> <em><jsl:applyTemplates select="synopsis"/></em><br />
  
</jsl:template>

  <jsl:template match="title">
    <span 
style="color:blue"><jsl:applyTemplates/></span>
  </jsl:template>


  <jsl:template 
match="para">
    <p><jsl:applyTemplates/></p>
  </jsl:template>

</jsl:stylesheet>


</body>
</html>

</j:jelly>

  \ No newline at end of file
  +<?xml version="1.0"?>
  +<j:jelly xmlns:j="jelly:core" xmlns:x="jelly:xml" xmlns:jsl="jelly:jsl">
  +
  +<html>
  +<body>
  +    
  +  <x:parse var="doc">
  +  <simpleDocument author="James Elson">
  +
  +    <title>I am a title!</title>
  +
  +    <synopsis>Twas a dark, rainy night...</synopsis>
  +
  +    <para>dfjsdfjsdf</para>
  +    <para>fdsfsdfhdsff gyuf uysgf ds</para>
  +
  +  </simpleDocument>
  +  </x:parse>
  +
  +
  +<h1>Output of first stylesheet1</h1>
  +
  +<jsl:stylesheet source="${doc}">
  +
  +  <jsl:template match="/">
  +    <jsl:applyTemplates/>
  +  </jsl:template>
  +
  +  <jsl:template match="title">
  +    <h2><jsl:applyTemplates/></h2>
  +  </jsl:template>
  +
  +
  +  <jsl:template match="para">
  +    <p><jsl:applyTemplates/></p>
  +  </jsl:template>
  +
  +  <jsl:template match="*">
  +    <small><jsl:applyTemplates/></small>
  +  </jsl:template>
  +
  +</jsl:stylesheet>
  +
  +<hr />
  +
  +<h1>Output of stylesheet2</h1>
  +
  +<jsl:stylesheet source="${doc}">
  +
  +  <jsl:template match="/">
  +    <jsl:applyTemplates/>
  +  </jsl:template>
  +
  +  <jsl:template match="*">
  +    <small><jsl:applyTemplates/></small>
  +  </jsl:template>
  +
  +  <jsl:template match="title">
  +    <h2><jsl:applyTemplates/></h2>
  +  </jsl:template>
  +
  +
  +  <jsl:template match="para">
  +    <p><jsl:applyTemplates/></p>
  +  </jsl:template>
  +
  +</jsl:stylesheet>
  +
  +<hr />
  +
  +<h1>Output of stylesheet3</h1>
  +
  +
  +<jsl:stylesheet source="${doc}">
  +
  +  <jsl:template match="/simpleDocument">
  +   <h2>Book review</h2>
  +   <b>Title:</b> <jsl:applyTemplates select="title"/><br />
  +   <b>Author:</b> <jsl:applyTemplates select="@author"/><br />
  +   <b>Summary:</b> <em><jsl:applyTemplates select="synopsis"/></em><br />
  +  </jsl:template>
  +
  +  <jsl:template match="title">
  +    <span style="color:blue"><jsl:applyTemplates/></span>
  +  </jsl:template>
  +
  +
  +  <jsl:template match="para">
  +    <p><jsl:applyTemplates/></p>
  +  </jsl:template>
  +
  +</jsl:stylesheet>
  +
  +
  +</body>
  +</html>
  +
  +</j:jelly>
  +
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to