Subject: Re: [xsl] DTD Subset Reduction Transformation From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 30 Aug 2002 15:28:07 -0400 |
<xsl:template match="node() | @*"> <xsl:copy> <xsl:apply-templates select="node() | @*"/> </xsl:copy> </xsl:template>
<xsl:template match="bottle | glass | brush"> <xsl:apply-templates/> </xsl:template>
Cheers, Wendell
I have an xml file that validates to a DTD. Let's call the DTD "larger.DTD".
I have another DTD which is a subset of larger.DTD, which we'll call smaller.DTD.
I want to strip out a bunch of elements in that xml file, so that it validates to smaller.DTD.
In other words, whatever elements/structures in the xml file that the smaller.DTD doesn't recognize, remove them. (there will probably be some information lossed of course.)
For example, transform an xhtml file into a chtml file. (or xhtml Strict to xhtml Simple).
Is there an automated easy way to do this type of reduction transformation?
(I am using msxml parser, but if you don't use it then please just give me the theory.)
thanks if you respond, Mike
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] DTD Subset Reduction Transfor, Mike K | Thread | [xsl] Use FXSL for this (Was: Re: q, Dimitre Novatchev |
Re: [xsl] Node selection based on p, Wendell Piez | Date | Re: [xsl] other engines than cocoon, Mike Brown |
Month |