473,320 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Links/ampersands in HTML tags using XML/XSLT

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
Jul 20 '05 #1
2 5508
* 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>.
Jul 20 '05 #2
SDM
Thanks, that did the trick. I was being mislead by testing using the address
bar. It does seem to work.

Thanks again...

Scott

Bjoern Hoehrmann <bj****@hoehrmann.de> wrote in message
news:3f*****************@news.bjoern.hoehrmann.de. ..
* SDM wrote in comp.text.xml:
I need to create a stylesheet to allow the querystring in my attribute linksto 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>.

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Spence Hackney | last post by:
I am using ASP.NET to get XML data from a database, style it with an XSLT, and then display it as HTML to a browser. The content in the database, which becomes my XML, has HTML tags embedded in...
0
by: Jurrie | last post by:
Hi all, I have a XML-document which i want to transform into PDF with apaches FOP. In my XML document i have <href> tags that are links to either a chapter in the document or to a place on the...
2
by: Joe | last post by:
How would you preserve tags from an XML element in XSLT output.. Example: XML document has an ELEMENT "SECTION" allowing contained HTML This element might have an element such as <A...
2
by: Chris | last post by:
Im hoping someone can help me understand why this works? Requirement: Navigate DOM through javascript to perform DHTML actions. Issue: GIANT html document, up to 4MB in size, thousands and...
7
by: Jonas Smithson | last post by:
Hello all, I have an absolute positioned parent div, and nested inside it is an absolute positioned child div -- I mean the div *code* is nested inside, but the child is physically positioned so...
4
by: sysxperts | last post by:
Hi, I have a mail server that generates archives in a directory for every message sent or received and each archive has an associated XML file with <sender>, <receiver>, <subject> and other...
9
by: anupamjain | last post by:
Hi, After 2 weeks of search/hit-and-trial I finally thought to revert to the group to find solution to my problem.(something I should have done much earlier) This is the deal : On a JSP...
3
by: Rusty | last post by:
Hi, our intranet web site needs to add this feature. I've got the components but just need the last step to get it going. Here's the setup. 1) a user clicks on a link which calls a web service...
4
by: mark4asp | last post by:
I have an element, report which contains tags which have been transformed. E.g. <pis &lt;p&gt <myXml> <report>This text has html tags in it.&lt;p&gt which but <has been changed to &lt;&gt</report>...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.