Extracting examples from a specification
While doing a review of the VoiceXML 2.1 first working draft as part of the attempts the W3C QA Team is making at reviewing early drafts, I’ve written up a very small XSLT style sheet which extracts the example of the specification, relying on their mark-up convention where examples are embedded in <div class='exampleInner'>; it uses the saxon:output extension, so that I get one XML file per example, which allows me then to check their well-formedness – and when they become available, their validity with regard to the DTD and the XML Schema.