xsl-list
[Top] [All Lists]

RE: href's in xml node data

2004-05-11 21:32:00
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.

… yes it's possibile—what 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
<Prev in Thread] Current Thread [Next in Thread>