taylor      2002/12/17 23:27:06

  Modified:    webapp/xml footballers.xml footballers.xsl
  Log:
  - Removed html and body tags from snipet
  - Fixed cut and paste error in stats
  
  Revision  Changes    Path
  1.2       +4 -4      jakarta-jetspeed/webapp/xml/footballers.xml
  
  Index: footballers.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/xml/footballers.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- footballers.xml   18 Dec 2002 07:05:50 -0000      1.1
  +++ footballers.xml   18 Dec 2002 07:27:05 -0000      1.2
  @@ -3,15 +3,15 @@
   <player>
   <firstname>Cobi</firstname>
   <lastname>Jones</lastname>
  -<position>Midfielder</position>
  -<caps>150</caps>
  -<goals>24</goals>
  +<position>Midfielder-Forward</position>
  +<caps>159</caps>
  +<goals>14</goals>
   <country>USA</country>
   </player>
   <player>
   <firstname>Zbigniew</firstname>
   <lastname>Boniek</lastname>
  -<position>Midfielder</position>
  +<position>Forward</position>
   <caps>80</caps>
   <goals>24</goals>
   <country>Poland</country>
  
  
  
  1.2       +56 -67    jakarta-jetspeed/webapp/xml/footballers.xsl
  
  Index: footballers.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/xml/footballers.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- footballers.xsl   18 Dec 2002 07:05:50 -0000      1.1
  +++ footballers.xsl   18 Dec 2002 07:27:05 -0000      1.2
  @@ -2,73 +2,62 @@
   <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
xmlns:fo="http://www.w3.org/1999/XSL/Format";>
   
   <xsl:template match="footballers">
  -     <html>
  -             <head>
  -                     <title>
  -                     Footballers
  -                     </title>
  -             </head>
  -             <body>
  -             
  -                     <xsl:for-each select="player">
  -                             <table>
  -                             <tr>
  -                             <td>
  -                             <h2>
  -                                     <xsl:value-of select="firstname"/>
  -                             </h2>
  -                             </td>                                   
  -                             <td>    
  -                             <h2>
  -                                     <xsl:value-of select="lastname"/>              
                         
  -                             </h2>                                   
  -                     </td>                                   
  -                    </tr>                                    
  -                             </table>                                        
  -                             <table width="70%">
  -                                     <tr valign="top">
  -                                             <td width="60%">
  -                                             </td>
  -                                             <td width="40%">
  -                                                     <table>
  -                                                             <tr>
  -                                                                     <td>
  -                                                                             
<b><small>Caps:</small></b>
  -                                                                     </td>
  -                                                                     <td>
  -                                                                             
<xsl:value-of select="caps"/>
  -                                                                     </td>
  -                                                             </tr>
  -                                                             <tr>
  -                                                                     <td>
  -                                                                             
<b><small>Goals</small></b>
  -                                                                     </td>
  -                                                                     <td>
  -                                                                             
<xsl:value-of select="goals"/>
  -                                                                     </td>
  -                                                             </tr>
  -                                                             <tr>
  -                                                                     <td>
  -                                                                             
<b><small>Position:</small></b>
  -                                                                     </td>
  -                                                                     <td>
  -                                                                             
<xsl:apply-templates select="position"/>
  -                                                                     </td>
  -                                                                     <td>
  -                                                                             
<b><small>Country:</small></b>
  -                                                                     </td>          
                                                         
  -                                                                     <td>
  -                                                                             
<xsl:apply-templates select="country"/>
  -                                                                     </td>          
                                                         
  -                                                             </tr>
  -                                                     </table>
  -                                             </td>
  -                                     </tr>
  -                             </table>
  -                     </xsl:for-each>
  -
  -           </body>
  -       </html>               
  +            <xsl:for-each select="player">
  +                <table>
  +                <tr>
  +                <td>
  +                <h2>
  +                    <xsl:value-of select="firstname"/>
  +                </h2>
  +                </td>                    
  +                <td>    
  +                <h2>
  +                    <xsl:value-of select="lastname"/>                    
  +                </h2>                    
  +                     </td>                    
  +                    </tr>                    
  +                </table>                    
  +                <table width="70%">
  +                    <tr valign="top">
  +                        <td width="60%">
  +                        </td>
  +                        <td width="40%">
  +                            <table>
  +                                <tr>
  +                                    <td>
  +                                        <b><small>Caps:</small></b>
  +                                    </td>
  +                                    <td>
  +                                        <xsl:value-of select="caps"/>
  +                                    </td>
  +                                </tr>
  +                                <tr>
  +                                    <td>
  +                                        <b><small>Goals</small></b>
  +                                    </td>
  +                                    <td>
  +                                        <xsl:value-of select="goals"/>
  +                                    </td>
  +                                </tr>
  +                                <tr>
  +                                    <td>
  +                                        <b><small>Position:</small></b>
  +                                    </td>
  +                                    <td>
  +                                        <xsl:apply-templates select="position"/>
  +                                    </td>
  +                                    <td>
  +                                        <b><small>Country:</small></b>
  +                                    </td>                                    
  +                                    <td>
  +                                        <xsl:apply-templates select="country"/>
  +                                    </td>                                    
  +                                </tr>
  +                            </table>
  +                        </td>
  +                    </tr>
  +                </table>
  +            </xsl:for-each>
   </xsl:template>
   
   </xsl:stylesheet>
  
  
  

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

Reply via email to