Jump to content

jetski

Members
  • Posts

    2
  • Joined

  • Last visited

jetski's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. I am assuming from lack of replies that this is not possible in XSLT, can anyone verify this?J
  2. I am trying to use a parameter to as part of the element name in Xpath in order to select a certain element, but cannot get it to work. I want to select element named either Artist1,Artist2,Artist3,...ArtistNdepending on the value 'N' of parameter $ArtistCount, passed to the template.I have tried all combinations of quotation marks and parenthesis, this is a typical example. <xsl:when test="boolean($thisSong/Artist'string($artistCount)')"> and <xsl:when test="boolean($thisSong/Artist{string($artistCount)})"> However I have managed to use parameters as part of the element name I am creating. (using the name attribute in xsl:element) <xsl:element name="RPI_{string($artistCount)}"> Is there a way to use a parameter's value as part of the element name in Xpath?
×
×
  • Create New...