Re: url content

Kwon Ekstrom <[email protected]> Tue, 28 Jan 2003 13:46:19 -0700
Newsgroups gmane.comp.java.sun.xml.general
Message-ID <[email protected]>
For example:
<xsl:template name="makelink">
<xsl:param name="href" />
<xsl:param name="text" />
<a><xsl:attribute name="href"><xsl:value-of select="$url"
/></xsl:attribute><xsl:value-of select="$text" /></a>
</xsl:template>

<xsl:call-template name="makelink">
<xsl:with-param name="href" select="@url" />
<xsl:with-param name="text" select="@text" />
</xsl:call-template>

That assumes your element has 2 attributes, url, and text.

You should also be able to try something like:
<a href="{@url}"><xsl:value-of select="@text" /></a>

----- Original Message -----
From: Gilbert, Antoine
To: [email protected]
Sent: Monday, January 27, 2003 5:57 AM
Subject: Re: url content


In part of the xml data

for example, assume an URL giving some parts of texts i wanna show with the
output...

-----------------------------------------------------
xml-interest: A list for discussing XML technologies in the Java Platform.
To post, mailto:[email protected]
Archives at: http://archives.java.sun.com/xml-interest.html
To unsubscribe, mailto:[email protected] the following message;
signoff xml-interest.