Return to Snippet

Revision: 16173
at July 28, 2009 08:59 by mikander


Initial Code
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="linCorpus/text/body/div[@id='d923' or @id='d1168' or @id='d1748']">
       <xsl:copy-of select="." />
</xsl:template>

<xsl:template match="text()">
</xsl:template>

</xsl:stylesheet>

Initial URL


Initial Description
Extract all <div> elements (and sub nodes), where the attribute 'id' has one of a number of given values

Initial Title
Print all XML elements, where given attribute has certain value

Initial Tags


Initial Language
XML