Solved

Encoding external params inside XSL

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

758 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

21 Experts available now in Live!

Get 1:1 Help Now