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

insert an attribute value through xsl

Subject: insert an attribute value through xsl
From: "=?big5?b?qkwgpGyq5A==?=" <minikittygo@xxxxxxxxxxx>
Date: Wed, 30 Jan 2002 15:12:52 +0000
 insert an attribute value through xsl
Hi there
I have a question about adding an extra id tag through xsl there how... suppose i have a xml file with such structure: -


<Family>
<name>Smith</name>
<parents>
<father>John</father>
<mother>Mary</mother>
</parents>
<child>Jane</child>
</Family>

<Family>
<name>Snow</name>
<parents>
<father>Geroge</father>
<mother>Sue</mother>
</parents>
<child>Liz</child>
<child>Paul</child>
</Family>

etc....

now i wish to transform such data in a table in HTML, however, i would like to add an extra piece of information; an id number for each no (i.e.
--------------------------------------------------------
familyno | Family name | Parents | Children |
--------------------------------------------------------
1 |Smith |John, Mary |Jane |
---------------------------------------------------------
2 |Snow |Geogre, Sue |Liz, Paul |
)


how am i suppose to add an id on each family through xsl? do i have to go through
a "double process" (e.g. adding an id attribute in the family tag, then convert) or is there a single step to do so? thanks for your time


Regards
Kit


_________________________________________________________________ ¦b±zªº¦æ°Ê¸Ë¸m¤W¶Ç°e±µ¦¬ Hotmail ¶l¥ó¡A½Ð²¾¦Ü http://mobile.msn.com¡C


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.