Solved

Encoding external params inside XSL

Posted on 2008-10-03
1
169 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Close tabpage of custom control 9 23
ASP.NET 5 Templates 2 65
Ajax Panel Not Updating When Triggered By Timer 4 40
IIS issues - Convert to Application - APS.NET v4.0 3 21
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

911 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

23 Experts available now in Live!

Get 1:1 Help Now