Subject: RE: [xsl] Beginner's question From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Thu, 12 Jul 2001 09:45:33 +0100 |
> Suppose I have an XML document with a complex DTD. The DTD > contains a tag > deep in the hierarchy called <code>. How would I transform > the XML doc to > another XML doc that was identical except for having the > <code> tag removed? > > I said it was a simple question! > It is. Use the identity template rule (see section 7.5 of the XSLT spec) for most elements, and override it with the empty template rule for code elements: <xsl:template match="code"/> Mike Kay Software AG XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Beginner's question, J S Publications | Thread | RE: [xsl] Beginner's question, J S Publications |
Re: [xsl] character encoding with M, Cees Dekker | Date | RE: [xsl] Saxon and HashMap/Hashtab, Michael Kay |
Month |