[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How to output the less-than sign (and not <)

Subject: RE: How to output the less-than sign (and not <)
From: "Amuchastegui, Maria" <Maria.Amuchastegui@xxxxxxxxxxx>
Date: Mon, 1 Mar 2004 13:43:57 -0500
less than sign in xml
I should have mentioned that the HTML snippet is itself XML data which has
been input by the user. The user has the option of including HTML tags in
his message. - Maria

<BillerComment>Upon pressing submit you are agreeing to the Terms and
Conditions on &lt;a href="http://www.bell.ca" target=newwindow&gt;
bell.ca&lt;/a&gt; the terms and conditions on Bell's site</BillerMessage>



-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Andreas L.
Delmelle
Sent: March 1, 2004 1:39 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  How to output the less-than sign (and not &lt;)


> -----Original Message-----
> From: Amuchastegui, Maria
>
> I am trying to generate HTML which contains an embedded
> hyperlink. However,
> because I use &lt; as the start tag, the resulting HTML displays
> the actual
> source code, and not a hyperlink. How do I escape the escape character so
> that the HTML contains the less-than sign?
>

Hi,

Is there any reason in particular why you can't do, for instance :

<xsl:template match="???">

  <xsl:text>Upon pressing submit you are agreeing to the Terms and
Conditions on </xsl:text>
  <a href="http://www.bell.ca" target="newwindow">bell.ca</a>
  <xsl:text> the terms and conditions on Bell's site</xsl:text>

</xsl:template>

?

Remember that the 'tags' are, especially in this case, valid XML, ergo valid
XSLT code.

Hope this helps!

Cheers,

Andreas


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.