Generating Jsf pages with xsl stylesheet
Hi people!, im trying to generate jsf pages from an xml using an xslt stylesheet, i have a problem now, that i cant generate an output like this:
<h:panelGroup rendered="#{beanXML.especialidad.nombre=='Cardiope diatria'}">
the output that im getting is:
<h:panelGroup rendered="#beanXML.especialidad.nombre=='Cardioped iatria'">
the {} are missing,
im using this xsl style sheet:
<xsl:template match="especialidad">
<h:form>
<h:panelGroup rendered="#{../@valor}=='{@nombre}'">
..
The xml file is:
<setcon valor="beanXML.especialidad.nombre">
<especialidad nombre="Cardiopediatria" tipoconsulta="#{beanXML.tipoConsulta}">
i must compare the property of a bean (beanXML.especialidad.nombre) in java with a value of a property ( nombre) in the xml, ive tryeid using xsl:text
and puting the values of {='{' and }='}' like i did with #= '#' but its nots working net beans say unable to parse
im using com.sun.org.apache.xalan.internal.xsltc.trax.Trans formerImpl - default JRE XSLT processor.
this is the header of my xsl style sheet:
xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<xsl:output method="html"/>
hope u can help! please!
|