| how to put c:if statements in generated HTML xsl html c:if |
jrfk2

msg:4507150 | 1:49 am on Oct 12, 2012 (gmt 0) | I am trying to put c:if lines out in the HTML my XSL is creating from the XML If I use this: <xsl:text disable-output-escaping="yes"><c:if test="${value=='yes'}"></xsl:text> when the XSL runs it says the prefix "c" for element "c:if" is not bound .. If i use like < and > for the < > before/after the c:if.. then the error goes away but my html does not render as needed. Is there some way to put out this line of text and not have the XSL translation care about the "c:if" ?
|
Dijkgraaf

msg:4515678 | 11:47 pm on Nov 4, 2012 (gmt 0) | The prefix needs to be identified in the root of your XSLT. See [w3schools.com...] where it has this in the root xmlns:xsl="http://www.w3.org/1999/XSL/Transform" and the following as the if expression. <xsl:if test="price > 10"> Notice how the xsl: is defined as pointing to XSL Transform namespace.
|
|
|