Using XSLT as an XML pre-processor
This is my first time doing anything with XSLT, or XML really, so please excuse me. I've found XSLT web documentation is really terse. I have an XML file that I want to process to selectively drop content based on an input set of defines. The behavior should be similar to a simple code pre-processor handling ifdef blocks. I've worked out how to do it as below, but some parts such as the "contents" variable didn't seem like the best way to handle this. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" /> <xsl:param name="defines-uri"