![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - XSL hyperLink >Thread Next - Re: XSL hyperLink Re: XSL hyperLinkTo: NULL Date: 2/12/2007 7:01:00 PM
RigasMinho wrote:
> I need to just put in a hyperlink into an XSL stylesheet. The hyper
> link isnt stored in an XML format either.
> I've tried this but no link showed up.
> <a>
> <xsl:attribute
> name="href">http://www.microsoft.com</xsl:attribute>
> </a>
If you want to have a link in the HTML output your stylesheet generates
then do e.g.
<a href="http://example.com/">Example link</a>
You can also generate links from data in the XML input e.g.
<a href="{url}"><xsl:value-of select="link-text"/></a>
So the main problem with your attempt above is that the a element only
has an attribute but no text content for the link.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
