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

RE: Problem writing XSLT

Subject: RE: Problem writing XSLT
From: Jarno.Elovirta@xxxxxxxxx
Date: Fri, 13 Jun 2003 08:45:52 +0300
writing xslt
Hi,

> 1 - each <trace> tag will generate a SQL in the
> corresponding <data> tag 

Process each trace with either xsl:for-each, or write a template that matches it and process the nodes with xsl:apply-templates.

> 2 - the value of columns of the SQL will come from
> <LEVEL>, <TIME>, <TICKS>, <COMPONENT>, <SUBCOMPONENT>
> and attribute values of <Datum> tag for e.g. Adapter
> and Method. The table name is a constant.

For table names in Datum, you can extract the valua using <xsl:value-of select="@name"/>, for the rest <xsl:value-of select="name()"/> when the element is the current node.

> 3 - values of table columns will be corresponding
> values of these tags

<xsl:value-of select="."/>

Use xsl:if to handle when commas are output. If you have problems in writing the stylesheet, show it to us and explain what's the problem.

Cheers,

Jarno - Lights Of Euphoria: Show Me Your Tears (Apoptygma Berzerk vs Industrial Heads mix)

 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.