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] |
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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |