Developers often need to parse an XML document in order to get XML document nodes, child nodes and so on. But usually we have no idea how far the depth/nesting of child nodes can go. So we need some form of recursive technique to loop the nested nodes and help us grab the values we want.
XML
Remove HTML Tags From An XSL Value
You may often need to remove HTML tags from some random text block and just display the raw text content. For example you may want to just display the text content of a multi-line rich text value using XSL. But since a multi-line rich text value is internally formatted with html, the html tags will be presented as part of the output.
Sorting Date And Time In XSL
Recently, I came across the need to sort the output of some XML transformed via XSLT. Normally, this isn’t too difficult. We just perform the sort within our template with some XSL code as simple as: