Links/ampersands in HTML tags using XML/XSLT

S

SDM

I need to create a stylesheet to allow the querystring in my attribute links
to format as:
<TD<A href='IQNet.asp?f=2&t=3'>Choice 1</A></TD>

not

<TD<A href='IQNet.asp?f=2&amp;t=3'>Choice 1</A></TD>

I can't put an XSLT tag inside an HTML tag so <xsl:text
disable-output-escaping="yes"> won't cut it.

Everything I've read says that the &amp; should work fine in this manner.
However I can't get my IIS applications using ASP to work properly.

Using ASP,
the request.querystring() function will return f=2&amp;t=3,
the request.querystring("f") will return 2, and
the request.querystring("t") will return nothing.

Since the application works fine using a simple ampersand I have to assume
that ASP just doesn't support what I wan't to do.

Any thoughts (besides tossing IIS)?

Thanks...

Scott
 
B

Bjoern Hoehrmann

* SDM wrote in comp.text.xml:
I need to create a stylesheet to allow the querystring in my attribute links
to format as:
<TD<A href='IQNet.asp?f=2&t=3'>Choice 1</A></TD>

not

<TD<A href='IQNet.asp?f=2&amp;t=3'>Choice 1</A></TD>

No, you don't need to. Try the latter in your browser (that is, load a
HTML document containing the code, do not put 'IQNet.asp?f=2&amp;t=3' in
the address bar) and you will see it will work. If you don't escape the
ampersand using your document is likely to break in some browsers, see
<http://www.htmlhelp.com/tools/validator/reasons.html>.
 
S

SDM

Thanks, that did the trick. I was being mislead by testing using the address
bar. It does seem to work.

Thanks again...

Scott
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top