View Single Post
  #1 (permalink)  
Old July 1st, 2009, 04:20 PM
pdimilla pdimilla is offline
Registered User
Join Date: Jul 2009
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Question Using XSLT to tranform XML into JSF


I am trying to find a example of using XSLT to transform XML into JSF. I've seen a couple of threads in other forums that indicate that this is easy; however, when I've tried it I've run into problems. Searching the web has yielded no good examples. In particular, I am having trouble with the taglibs. Here's my stylesheet:

<?xml version="1.0"?> 
<xsl:stylesheet version="1.0"
extension-element-prefixes="b64 dep">

<xsl:template match="TAG">
<xsl:text disable-output-escaping="yes">
&lt;%@ taglib uri="" prefix="f"%>
&lt;%@ taglib uri="" prefix="h"%>
&lt;%@ taglib uri="" prefix="a4j"%>
&lt;%@ taglib uri="" prefix="rich"%>
<img src="../hmss/images/MedNet50.jpg" />
<f:facet name="header">
<h:outputText value="tag id"/>
<h:outputText value="<xsl:value-of select="tagid"/>"/>
<f:facet name="header">
<h:outputText value="mac address"/>
<h:outputText value="<xsl:value-of select="mac"/>"/>
<f:facet name="header">
<h:outputText value="map name"/>
<h:outputText value="<xsl:value-of select="posmapname"/>"/>
<f:facet name="header">
<h:outputText value="timestamp"/>
<h:outputText value="<xsl:value-of select="postimestamp"/>"/>
<xsl:variable name="data" select="data_b"/>
<xsl:value-of select="b64:decodeToFile($data,'map.png')"/>
<img src="{dep:deployFile('map.png')}" />

I am using the XALAN processor. My operating system is Windows XP. My problem is strictly with the taglibs. Any help is appreciated.

Reply With Quote