|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
||||
|
||||
|
Rendering XSLT output into an URL
Hi,
I'm having problems trying to render XSL output into a URL. It seems the problems lie with the characters & and =. This XSL code renders fine: Code:
<xsl:template match="stuff">
<a href="stuff/q2_{@set}.htm?qset\={@qset}qcode-{@qcode}">hello</a>
</xsl:template>
This, however, does not: Code:
<xsl:template match="stuff">
<a href="stuff/q2_{@set}.htm?qset={@qset}&qcode={@qcode}">hello</a>
</xsl:template>
I get an error complaining about the XSL not being well-formed. I need to use the ampersand and equals characters in order to build my URL correctly. How can I use these characters without causing an error?
__________________
Alex (http://www.alex-greg.com) |
|
#2
|
|||
|
|||
|
You can't just use special characters like the ampersand(&), but you have to replace them with (for example):
Code:
& ( I had to place it between [code] tags, because vB parsed it too. Character Data and Markup
__________________
Some people, when confronted with a problem, think “I know, I'll use regular expressions.” Now they have two problems. - Jamie Zawinski, in comp.lang.emacs |
|
#3
|
|||
|
|||
|
__________________
The Knowledge Emporium |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Rendering XSLT output into an URL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|