Tag Archives: xslt

Search & Replace in XSLT 2

For a project at $WORK, we want to implement Solr’s spelling suggestions. When you ask solr to provide suggestions, it comes back with something like this (the original search was spinish englosh): <response> … <lst name="spellcheck"> <lst name="suggestions"> <lst name="spinish"> … Continue reading

Posted in Uncategorized | Tagged , | 1 Comment

Practical Fascism

On my recent project at work, I’ve instigated a number of features: An XSLT stylesheet that strips out all inline JavaScript and inline CSS before it ever hits the browser. Go-go Unobtrusive JavaScript! Lots of jUnit tests: Every piece of … Continue reading

Posted in Uncategorized | Tagged , , , | Comments Off

Client-Side XSLT

I’ve been playing with XSLT in the Browser. It appears simple enough: Just add an xml-stylesheet processing instruction to the top of your XML, pointing at your XSLT. <?xml-stylesheet href=”stylish.xsl” type=”text/xsl”?> But there’s one more condition that needs to be … Continue reading

Posted in Uncategorized | Tagged | Comments Off

XSLT Character Creation

I’ve just spent most of the afternoon on a character building exercise. I have some XML like this: <symbol unicode=”2103″/> And I need to turn that into the numeric character reference &#x2013;. It’s perfectly possible to do so with a … Continue reading

Posted in Uncategorized | Tagged , | 11 Comments