Subject: Re: [xsl] XHTML->XHTML w/ XSLT, modifying only specific element(s) From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Sun, 24 Oct 2004 18:03:42 -0400 |
I'm trying to use XSLT to transform XHTML to XHTML, modifying only specific elements in the process--specifically, I want to append a link within blockquote elements which uses the cite and title attributes of the blockquote tags. Here's what I have right now:
<xsl:template match="blockquote[@cite and @title]">
<a class="serendipity_blockquoteReferenceLink"> <xsl:attribute-set name="href"><xsl:value-of select="@cite"/></xsl:attribute-set> <xsl:value-of select="@title"/> </a>
<a class="serendipity_blockquoteReferenceLink" href="{@cite}"> <xsl:value-of select="@title"/> </a>
Nothing I put in that second xsl:template element seems to have any effect.
Sorry to post such a simple question, but I'm completely stumped.
-- World-wide on-site corporate, govt. & user group XML/XSL training. G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XHTML->XHTML w/ XSLT, mod, Michael Kay | Thread | Re: [xsl] XHTML->XHTML w/ XSLT, mod, Evan Nemerson |
Re: [xsl] XSLT 2.0 *and* XSLT 1.0 v, David Carlisle | Date | Re: [xsl] XSLT 2.0 *and* XSLT 1.0 v, Bruce D'Arcus |
Month |