Altova Mailing List Archives
>xsl-list Archive Home
>Recent entries
>Thread Prev - [xsl] few question regarding the use of id generation
>Thread Next - Re: [xsl] few question regarding the use of id generation
RE: [xsl] few question regarding the use of id generation
To:
Date: 2/5/2002 3:28:00 AM
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: [xsl] 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
Disclaimer
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

