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

RE: How should I output "<", "&" ?

Subject: RE: How should I output "<", "&" ?
From: Kenneth Li <kli@xxxxxxxxxxxxxxxx>
Date: Wed, 28 Oct 1998 18:03:41 -0500
kenneth li
> Why?  Do you have an entity called STOCK or EXCHANGE?  If not, then
> that's *not* what you want to use.  It's not a matter of opinion;
> &STOCK is an SGML reference to the entity STOCK (it's not even legal
> XML if the entity exists, because it would need a semicolon).
> 
> HTML browsers' acceptance of the first form is a bug, not a feature,
> and the use of ampersands to separate query parameters has been
> deprecated since before HTML 2.0 for precisely this reason.
> 
> -Chris


Thank you very much for your reply! Chris.

There is no an entity called STOCK or EXCHANGE in my files. I use & to 
separate query parameters. So it seems that I should change the & symbol
to other one, right?

Then what about < and >? I want to find a way to output < and >
directly. For example, if I use

<xsl:text><VAR NAME="DEST"
VALUE="GetQuoteDetail.puml?FUNCTION=GetQuoteDetail|STOCK=MSFT|EXCHANGE=N
ASDAQ"/></xsl:text>

I want to get:

<VAR NAME="DEST"
VALUE="GetQuoteDetail.puml?FUNCTION=GetQuoteDetail|STOCK=MSFT|EXCHANGE=N
ASDAQ"/>

But in reality, I was not allowed to use < and >. What is more, even I
use:

xsl:text>&lt;VAR NAME="DEST"
VALUE="GetQuoteDetail.puml?FUNCTION=GetQuoteDetail|STOCK=MSFT|EXCHANGE=N
ASDAQ"/&gt;</xsl:text>

I get:
xsl:text>&lt;VAR NAME=&quot;DEST&quot;
VALUE=&quot;GetQuoteDetail.puml?FUNCTION=GetQuoteDetail|STOCK=MSFT|EXCHA
NGE=NASDAQ&quot;/&gt;</xsl:text>

That is, the processor change the " to &quot; Why?

Thanks!

ken




 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.