![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: XSL hyperLink >Thread Next - Re: XSL hyperLink Re: XSL hyperLinkTo: NULL Date: 2/12/2007 11:52:00 AM
On Feb 12, 1:00 pm, Martin Honnen <mahotr...@yahoo.de> wrote:
> 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/
Using this works -
<a href="http://example.com/">Example link</a>
but if i have a really long link - it gives me an error of:
"A semi colon character was expected"
Is there a way to put in a really long link into XSL for users to
click on?
I also thought about using this line:
<input type="button" value="Close Window"
onclick="javascript:window.close()" />
but wouldnt know how to make it link to a new url.
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
