Subject: RE: [xsl] few question regarding the use of id generation From: "Andrew Welch" <andrew@xxxxxxxxxxxxxxxxxxxxxxx> Date: Tue, 5 Feb 2002 13:23:00 -0000 |
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 林 子芯 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 _________________________________________________________________ 使用全球最多人使用的電子郵件服務 MSN Hotmail,請移至 http://www.hotmail.com 。 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] few question regarding th, Attila Strauss | Thread | Re: [xsl] few question regarding th, Joerg Heinicke |
RE: [xsl] Xselerator, Andrew Welch | Date | RE: [xsl] Xselerator, Jeff Beadle |
Month |