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

RE: href's in xml node data

Subject: RE: href's in xml node data
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Wed, 12 May 2004 07:32:00 +0300
href in xml
Hi,

> I've serached the archives et al., as well as looked through all the
> reference books and such I can find but can't seem to find an 
> answer as to
> if the following is possible to transform through xsl a document that
> contains things such as hrefs and mailto in a document data 
> node, such as
> the following.

b& yes it's possibilebwhat do you want the result document to look like?

> If it is possible, how would it be done?
 
E.g.

<xsl:template match="test">
  <h1>
    <a href="maito:{email}">
      <xsl:value-of select="author"/>
    </a>
  </h1>
  <p>
    <xsl:apply-templates select="content/node()"/>
  </p>
</xsl:template>
<xsl:template match="a">
  <a href="maito:{email}">
    <xsl:apply-templates />
  </a>
</xsl:template> 

Cheers,

Jarno - Madam Zu: September 2002 Mix

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.