Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XSL hyperLink

From: Martin Honnen <mahotrash@-----.-->
To: 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/


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent