Solved

Encoding external params inside XSL

Posted on 2008-10-03
1
170 Views
Last Modified: 2013-11-18
Im trying to fill a combobox from external params but i get the follow problem:

please, anyone can help me to get the SELECT filled to show to the user the list of options.
vb.net Code (work fine):
 
oArgs.AddParam("LISTA_CONDICIONES", "", "<option value=""all"">TODOS</option>")
oXSLT.Transform(oXML, oArgs, oSWriter)
 
the XSL file:
 
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:param name="LISTA_CONDICIONES" />
 
	<xsl:template match="/">
		<SELECT><xsl:value-of select="$LISTA_CONDICIONES"/></SELECT>
    </xsl:template>
</xsl:stylesheet>
 
 
HTML Result:
<SELECT>&lt;option value="all"&gt;TODOS&lt;/option&gt;</SELECT>

Open in new window

0
Comment
Question by:Hans Langer
1 Comment
 
LVL 10

Accepted Solution

by:
Hans Langer earned 0 total points
ID: 22642016
ok, the solution is:
<SELECT><xsl:value-of disable-output-escaping="yes" select="$LISTA_CONDICIONES"/></SELECT>

Open in new window

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now