Subject: RE: [xsl] Delete XML Node From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 01 Nov 2002 11:29:12 -0500 |
Thank you very much. Your solution works perfectly fine. But looking at a maintenance point of view, the rule for <B> and <C> are repeated twice, once for <Y> and once of either <B> or <C>. If there is a change to any of the rules for <B> or <C>, I would have to remember to change two places instead of just one. Do you think there is a way to avoid this?
Or more simply, if a Y will never have more than one B, you can do
<xsl:template match="B"> <B1> <xsl:apply-templates/> </B1> </xsl:template>
<Y> <B>ABC</B> <B>LMN</B> <C>zzz</C> <Y>
Cheers, Wendell
====================================================================== 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 -> |
---|---|---|
RE: [xsl] Delete XML Node, Deepak Rao | Thread | RE: [xsl] Delete XML Node, Wendell Piez |
[xsl] msxml encoding for multi-lang, katharine wykes | Date | RE: [xsl] Delete XML Node, Wendell Piez |
Month |