commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jelly/src/script makeTagDoc.jelly
Date Thu, 15 Aug 2002 17:40:07 GMT
jstrachan    2002/08/15 10:40:07

  Modified:    jelly/src/script makeTagDoc.jelly
  Log:
  Patched to make the XPath expressions more explcit and non-relative. This helps get around
a temporary bugette with JSL somehow breaking the current XPath context.
  
  Revision  Changes    Path
  1.8       +8 -8      jakarta-commons-sandbox/jelly/src/script/makeTagDoc.jelly
  
  Index: makeTagDoc.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/script/makeTagDoc.jelly,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- makeTagDoc.jelly	9 Aug 2002 14:07:24 -0000	1.7
  +++ makeTagDoc.jelly	15 Aug 2002 17:40:07 -0000	1.8
  @@ -90,10 +90,11 @@
       
       <x:forEach select="tag">
       <x:set var="tagName" select="string(@name)"/>
  +    <x:set var="doc" select="doc"/>
   	<tr>
       	<td><a href="#${prefix}:${tagName}">${tagName}</a></td>
           <td>        
  -      	  <jsl:style stylesheet="${docStylesheet}" select="doc"/>
  +      	  <jsl:style stylesheet="${docStylesheet}" select="$doc"/>
   		</td>
   	</tr>
       </x:forEach>
  @@ -114,13 +115,12 @@
       
       <x:forEach select="$libraries">
       <x:set var="prefix" select="string(@prefix)"/>
  -      <x:forEach select="tag">
  +      <x:forEach select="tag" var="tag">
         <x:set var="tagName" select="string(@name)"/>
   
  -
   	    <subsection name="${prefix}:${tagName}">
   	    <p>
  -	      <jsl:style stylesheet="${docStylesheet}" select="doc"/>
  +	      <jsl:style stylesheet="${docStylesheet}" select="$tag/doc"/>
   	    </p>
   	      
   	    <table>
  @@ -130,12 +130,12 @@
   	      <th>Description</th>
   	    </tr>
   	    
  -	    <x:forEach select="attribute">
  +	    <x:forEach var="attr" select="$tag/attribute">
   		<tr>
  -	    	<td><x:expr select="@name"/></td>
  -	    	<td><x:expr select="@type"/></td>
  +	    	<td><x:expr select="$attr/@name"/></td>
  +	    	<td><x:expr select="$attr/@type"/></td>
   	        <td>        
  -	      	  <jsl:style stylesheet="${docStylesheet}" select="doc"/>
  +	      	  <jsl:style stylesheet="${docStylesheet}" select="$attr/doc"/>
   			</td>
   		</tr>
   	    </x:forEach>
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message