RE: [xsl] Select issue with some attr and others not.

Subject: RE: [xsl] Select issue with some attr and others not.
From: "John Hamman" <John@xxxxxxxxxxxxxxxxx>
Date: Fri, 16 Apr 2004 12:31:55 -0400
Well what I would like to do is set a param and be able to use the param to
deside what lang is brought back. 
SO depending on what the param states, it would bring back en-EN or es-ES

-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx] 
Sent: Friday, April 16, 2004 12:29 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Select issue with some attr and others not.

> 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

<xsl:template match="node()">
<xsl:copy-of select="@*/>

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.


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:

Current Thread