/ Published in: XML
Extract all elements (and sub nodes), where the attribute 'id' has one of a number of given values
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?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>