[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Forming a Table from an XML Data file

Subject: Re: Forming a Table from an XML Data file
From: Ranajay Raychaudhuri <raychaur@xxxxxxxxxxxx>
Date: Tue, 07 Aug 2001 19:13:59 +0100
ranajay raychaudhuri
Jan Weiss wrote:

> hi ron,
>
> try this,
>
> <xsl:stylesheet>
> <xsl:template match="/">
>                 <html>
>                         <head>
>
>                         </head>
>                         <body bgcolor="#FFFFFF" topmargin="0" leftmargin="0" marginwidth="0">
>
>                         <table>
>
>                         <tr>
>                                 <th>progressive_velocity</th>
>                                 <th>corresponding time</th>
>                         </tr>
>
>                 <xsl:for-each select="output">
>                         <tr>
>
>                                         <td>
>                                                 <xsl:value-of select="progressive_vel/."/>
>                                         </td>
>                                         <td >
>                                                 <xsl:value-of select="corresp_time/."/>
>                                         </td>
>
>                         </tr>
>
>                         </table>
>                         </body>
>                 </html>
>         </xsl:template>
>
>
> </xsl:stylesheet>
>
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Ranajay
> Raychaudhuri
> Sent: Dienstag, 7. August 2001 13:53
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Forming a Table from an XML Data file
>
> Dear Sir/Madam,
>
> I have simple XML file in the form:
>
> <XEX-data
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="student_schema1-ebSchema.xsd">
>
> <!--============================================================-->
>
>         <output id="op1">
>              <corresp_time>401</corresp_time>
>              <progressive_vel>3.34</progressive_vel>
>         </output>
>
>         <output id="op2">
>              <corresp_time>411</corresp_time>
>              <progressive_vel>3.01</progressive_vel>
>         </output>
>
> <!--============================================================-->
>
> </XEX-data>
>
> I want to write XSL codew which would simply extract the values of the
> attributes of the element "output" and pdisplay them in a table of the
> form:
>
> progressive_velocity  Corresponding time
>         3.34                            401
>         3.01                            411
>
> How can I achieve this?
>
> Thanks,
> Ron
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Hi Jan,

I'll try it immediately and let you know.

Cheers!!...
Ron


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.