G
gwoodhouse
Hello everyone,
Im brand new to XSL, im a java programmer by trade.
Problem:
What i need to do is put a variable in a for loop and extract an array
or set of variables from it.
Example:
I have a variable coming to the xsl in the format "hum|bla|lit"
I need to print this out as "Humanities, Black Studies, Literature"
but i dont know how to recursivly get what i need.
Current Code:
So far i can get the first part of the variable understood and
translated.
<xslaram name="subject"><xsl:value-of select="substring-
before(.,'|')"/></xslaram>
<xsl:choose>
<xsl:when test="$subject = 'wom'">
<subfield code="a">Women's Studies</subfield>
</xsl:when>
etc etc etc
Is there a function to split a variable so i can use a <xsl:for-each
select="splittingfunction(.,"|")"> type line?
Hope someone can help!
Graeme
Im brand new to XSL, im a java programmer by trade.
Problem:
What i need to do is put a variable in a for loop and extract an array
or set of variables from it.
Example:
I have a variable coming to the xsl in the format "hum|bla|lit"
I need to print this out as "Humanities, Black Studies, Literature"
but i dont know how to recursivly get what i need.
Current Code:
So far i can get the first part of the variable understood and
translated.
<xslaram name="subject"><xsl:value-of select="substring-
before(.,'|')"/></xslaram>
<xsl:choose>
<xsl:when test="$subject = 'wom'">
<subfield code="a">Women's Studies</subfield>
</xsl:when>
etc etc etc
Is there a function to split a variable so i can use a <xsl:for-each
select="splittingfunction(.,"|")"> type line?
Hope someone can help!
Graeme