Skip to main content


Showing posts from January, 2013

Umbraco - XSLT - Replace String, Replace String in Selection from DropDownList Mulitiple

The following code highlights the string replacement function in umbraco: The example below places a space after each comma (basically to help with the formatting) from values selected from a multiple drop down list ("placementHospital"). The important bit is highlighted. <?xml  version="1.0" encoding="UTF-8"?> <! DOCTYPE xsl:stylesheet [  <! ENTITY nbsp " &#x00A0; "> ]> < xsl:stylesheet     version = "1.0"     xmlns:xsl = ""     xmlns:msxml = "urn:schemas-microsoft-com:xslt"    xmlns:umbraco.library = "urn:umbraco.library"  xmlns:Exslt.ExsltCommon = "urn:Exslt.ExsltCommon"  xmlns:Exslt.ExsltDatesAndTimes = "urn:Exslt.ExsltDatesAndTimes"  xmlns:Exslt.ExsltMath = "urn:Exslt.ExsltMath"  xmlns:Exslt.ExsltRegularExpressions = "urn:Exslt.ExsltRegularExpressions"  xmlns:Exslt.ExsltStrings = "urn:E