[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

The identity transform and all <a> links: xslt 1.0

Subject: The identity transform and all <a> links: xslt 1.0
From: "Marroc" <marrocdanderfluff@xxxxxxxxxxx>
Date: Thu, 24 Jan 2008 14:16:38 -0000
 The identity transform and  all <a> links: xslt 1.0
Hi all,

this is for a separate XHTML job for which I have an urgent deadline - I'm
sure the answer is equally quick and simple.

If I take the identity transform and want to edit one element during the
transform, let's say <a> links, what is the best method for drawing them out
separately?

I tried this but it ignores me:

<xsl:template match="node()" priority="1">
    <xsl:copy>
        <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
</xsl:template>

<xsl:template match="@*" priority="1">
    <xsl:copy/>
</xsl:template>

<xsl:template match="a">
	I found an <xsl:value-of  select="name()"/> here!
</xsl:template>

I then created a complex work around using a choose statement in the node()
template and a named template but that also didn't work. Help please!

Thanks,
Richard

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.