Subject: Recursion in XSL From: "ciaran byrne" <ciaran.byrne@xxxxxxx> Date: Mon, 14 Aug 2000 16:34:47 +0100 |
Hi all, I'm sure this question has been asked before although I can't find it anywhere. Is is possible to handle recursion in XSL in the following manner. I have a tag: <tag att1="value1" att2="value2" att3="value3"> where I want to replace all the '"' with '|' as follows: att1=|value1| att2=|value2| att3=|value3| (!no space after the last attribute) I was trying to do this with recursion whereby I'd use: <xsl:for-each select="@*"> ..... </xsl:for-each> the problem with this approach was that I am not aware of any way to recurse over my param like I'd do in Java/C++,etc. i.e. i++ Alternatively, if anyone could suggest a way in which to retrieve all the attributes and their values as one string so that I could perform a translate on them that would achieve the same purpose: translate($attributeString,'"','|') Any ideas ... or is it possible ??? Ciaran. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Creating WML anchors using XSL, Ben Robb | Thread | Re: Recursion in XSL, Mike Brown |
RE: Creating WML anchors using XSL, Ben Robb | Date | Lopping off Element Type names with, John Robert Gardner |
Month |