[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: few question regarding the use of id generation
Hi, generate-id() will generate a unique id for any element, so in your case the first <c> will have a different generated id to the second <c>. Do you really want to use generate-id() or do you want your output to have different id's for elements (for classes in html, say) ?? >secondly, i know i might sound pretty stupid but is there a function in xsl >that could do similar operation as the following sql command? >select * from results where c="2"; If c were an attribute of results then: <xsl:template match="results[@c='2']"> ... If c were a child/descendant of results then: <xsl:template match="results[//c='2']"> ... Cheers andrew === -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of ªL ¤lªä Sent: Tuesday, February 05, 2002 12:20 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: few question regarding the use of id generation hi there: i was wondering anyone could help me out on this question.... suppose i have such structures:- <experiment> <method> <a>value1</a> <b>value2</b> <c> <d>vlaue</d> <e>value3</e> </c> <results> <a>value1</a> <b>value2</b> <c> <d>vlaue</d> <e>value3</e> </c> </method> ... Suppose i wish to generate an id for <c> in the results elemeny, i will have to use gerate-id(c), however i was wondering whether an same id will be generate in method/c (given that the value are the same). if not, is there a way to generate the same id for both of them? secondly, i know i might sound pretty stupid but is there a function in xsl that could do similar operation as the following sql command? select * from results where c="2"; Many thanks Kit _________________________________________________________________ ¨Ï¥Î¥þ²y³Ì¦h¤H¨Ï¥Îªº¹q¤l¶l¥óªA°È MSN Hotmail¡A½Ð²¾¦Ü http://www.hotmail.com ¡C XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|