Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XSL hyperLink

From: "RigasMinho" <minho.cho@-----.--->
To: NULL
Date: 2/13/2007 6:06:00 AM

On Feb 12, 3:46 pm, Peter Flynn <peter.n...@m.silmaril.ie> wrote:
> RigasMinho wrote:
> > On Feb 12, 3:15 pm, Peter Flynn <peter.n...@m.silmaril.ie> wrote:
> >> RigasMinho wrote:
>
> >> [snip]
>
> >>> 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"
> >> It's nothing to do with length (despite what the spam says :-)
> >> It's XML, so it must be well-formed.
> >> You have one or more raw &s in your URL. They must be given as &amp;
>
> >>> Is there a way to put in a really long link into XSL for users to
> >>> click on?
> >> The example Martin has already given has no length limit.
>
> >>> 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.
> >> That's a different question. You could include a JS function in a script
> >> element in your head element which invokes the open-window
> >> function. Then reference that in any onclick attributes.
>
> >> But what you suggest is very poor UI design. If the button says "Close
> >> Window" the the user will expect exactly that and no more. Making it
> >> close the window and then open another unexpectedly is A Bad Idea.
>
> >> ///Peter
> >> --
> >> XML FAQ:http://xml.silmaril.ie/
>
> > You're right i do have & in my link.
>
> > So the way to resolve this is by replacing each & with "&amp;"  .....
> > minus the quotes?
>
> Yes, exactly. A bare & is not allowed in XML because it's a markup
> character. It introduces an entity reference like &amp; &lt; &gt; &apos;
> &quot; and thousands more, so having one on its own is not meaningful.
>
> ///Peter
> --
> XML FAQ:http://xml.silmaril.ie/- Hide quoted text -
>
> - Show quoted text -

Is there a way to make the line:
   <a href="http://example.com/">Example link</a>
actually open up a new window?

Currently the link opens in the same window - but i want it to open a
new window with the link inside of it.




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