Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XSL hyperLink

From: "RigasMinho" <minho.cho@-----.--->
To: 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.



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