[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Hi,
At 03:18 AM 9/17/2008, George wrote:
Or, since we are using XPath 2.0,
select="BB/(* except TG, TG), AB"
Or, placing the logic where it arguably belongs, one could apply templates to "BB, AB" elements, and then have the 'BB' template select "* except TG, TG".
If you know what I mean....
Re: [xsl] Tag movement in XML
Subject: Re: [xsl] Tag movement in XML From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 17 Sep 2008 10:59:05 -0400 |
Hi,
At 03:18 AM 9/17/2008, George wrote:
Those elements are at different levels inside your document, not children of D. Only AB is a child of D and that is why you get only that in the output. Try for example:
<xsl:apply-templates select="BB/*[not(self::TG)], BB/TG, AB"/>
Or, since we are using XPath 2.0,
select="BB/(* except TG, TG), AB"
Or, placing the logic where it arguably belongs, one could apply templates to "BB, AB" elements, and then have the 'BB' template select "* except TG, TG".
If you know what I mean....
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] Tag movement in XML, George Cristian Bina | Thread | RE: [xsl] Tag movement in XML, Michael Kay |
Re: [xsl] // expanding to descendan, Wendell Piez | Date | Re: [xsl] // expanding to descendan, Evan Lenz |
Month |