This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
xsl:copy
- From: Cenk Uysal <cenk_uysal at yahoo dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Sat, 6 Jul 2002 05:21:58 -0700 (PDT)
- Subject: [xsl] xsl:copy
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
I have a XSL file as follows:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/ | @* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
I took this example from Microsoft MSDN library. It creates a copy of
any XML file given. But I want to use this example for language
filtering. I try to copy a XML file's tags which satisifies my
language filtering. For example I will only copy following XML's
lang='en' and no language defined tags:
<page>
<title lang="tr">Hoºgeldiniz</title>
<title lang="en">Wellcome</title>
<description>
assafs aszdfsd
</description>
</page>
So I want to add an expression to "select" attribute of
<xsl:apply-templates> element of this XSL. How can I do that?
__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list