[Home] [By Thread] [By Date] [Recent Entries]

Subject: assign values
From: "=?big5?b?qkwgpGyq5A==?=" <minikittygo@xxxxxxxxxxx>
Date: Fri, 01 Feb 2002 14:54:27 +0000
Hi
Suppose i have to use an xsl value to form a combine key id for the table i am creating: -


xml structure

<A>
 <b>value1</b>
 <c>
    <d>value2</d>
    <e>value3</e>
    <f>value4</f>
 <c>
</A>
...

<xsl:template match="a/c">
ID tag = <xsl:value-of select="a/c/d"/><xsl:value-of select="a/c/e"/><xsl:value-of select="a/c/f"/>
</xsl:template>


the output of this would be:
ID tag=value2value3value4
ID tag=.....

my question is, is there a way that i could assign the value of this id tag to something less 'longwinded' to an unique number giving the following output result instead:

ID tag=2
ID tag=3
ID tag=...

thanks you for help

Regards
Kit


_________________________________________________________________
¨Ï¥Î MSN Messenger¡A»PªB¤Í¦b½u¤W²á¤Ñ¡Ghttp://messenger.microsoft.com/tc¡C



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread
  • assign values
    • =?big5?b?qkwgpGyq5A==?= - Fri, 1 Feb 2002 09:52:41 -0500 (EST) <=
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member