ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xsl-list
xsl-list
Re: [boost] Re: boos::mpl::for_each: call function with return value
by Joel de Guzman other posts by this author
Nov 4 2003 6:45AM messages near this date
Re: [xsl] Select statement within HREF | [xsl] Xml to Xml
Any help would be of great help.

Have a great day.

Karthikeyan B


XSL Code
=========

<?xml version="1.0" encoding="UTF-8"?> 
<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="NI"> 
  <table> 
   <xsl:for-each select="TABLE/TBODY/ROW"> 
    <tr> 
     <td> 
      <xsl:value-of select="ENTRY[1]/PARA[1]"/> 
     </td> 
     <td> 
      <xsl:value-of select="ENTRY[2]/PARA[2]"/> 
     </td> 
    </tr> 
    <xsl:if test="position() mod 10 = 0"> 
     <tr> 
      <td colspan="2"> 
       <hr/> 
      </td> 
     </tr> 
    </xsl:if> 
   </xsl:for-each> 
  </table> 
 </xsl:template> 
</xsl:stylesheet> 

XML Code
=========
<NI PUBLISH="DEC31"> 
 <TABLE> 
  <TBODY> 
   <ROW> 
    <ENTRY> 
     <PARA> MS9557-09</PARA>
     <PARA LEVEL="2"> 73 34 15  01  010</PARA>
    </ENTRY> 
    <ENTRY> 
     <PARA/> 
     <PARA> 3</PARA>
    </ENTRY> 
   </ROW> 
   <ROW> 
    <ENTRY> 
     <PARA> MS9557-09</PARA>
     <PARA LEVEL="2"> 73 34 15  01  010</PARA>
    </ENTRY> 
    <ENTRY> 
     <PARA/> 
     <PARA> 3</PARA>
    </ENTRY> 
   </ROW> 
  </TBODY> 
 </TABLE> 
</NI> 






 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
Thread:
Sebastian Faust
Aleksey Gurtovoy
Joel de Guzman
Aleksey Gurtovoy
Joel de Guzman
Aleksey Gurtovoy
David Abrahams
Aleksey Gurtovoy
Aleksey Gurtovoy
Sebastian Faust
Daniel Wallin
David Abrahams
Sebastian Faust
David Abrahams

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved