[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] Select issue with some attr and others not.
Subject: Re: [xsl] Select issue with some attr and others not. From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 16 Apr 2004 17:28:42 +0100 |
> AND I want to pull back this result with xsl (depeding on the > language.) You didn't say what that transform was, is it just dropping the spanish? If so you just need a stylesheet with two templates, one that copies everything <xsl:template match="node()"> <xsl:copy> <xsl:copy-of select="@*/> <xsl:apply-templates/> </xsl:copy> </xsl:template> and then one to not copy spanish <xsl:template match="*[@lang='es-ES']"/> You probably won't get the output written using CDATA but that's just a syntactic quirk and doesn't affect the way the files are processed by an XML application. David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Select issue with some attr a, John Hamman | Thread | RE: [xsl] Select issue with some at, John Hamman |
Re: [xsl] XML to Table, David Carlisle | Date | RE: [xsl] Select issue with some at, John Hamman |
Month |