This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: xsl - variable - array problem


Hi
I believe the following may work.

<xsl:value-of select="array/[local-name()='word3']"/>



"Partho Paul" <uk4u@rz.uni-karlsruhe.de> on 03/20/2001 04:29:37 PM

Please respond to xsl-list@lists.mulberrytech.com

To:   "xsl" <xsl-list@lists.mulberrytech.com>
cc:    (bcc: Sujit K Mishra/India/IBM)
Subject:  [xsl] xsl - variable - array problem




Hello,
I want to do something like an array:

<xsl:variable name="array">
  <word1>value1</word1>
  <word2>value2</word2>
  <word3>value3</word3>
  ......
</xsl:variable>

Now I want to acces each of the values individually and not in sequence:
I tried the following, which does not work:

<xsl:value-of selec="$array/*[local-name()='word3']"/>

Is there another possibility?

Partho


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





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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]