I write an Wicket application which should view a basic XML using XSL. When I let the code parse in w3schools tutorial, everything works. When I use Wickets XsltTransformerBehavior, I only see the basic table-structure, but no values.XML:\[code\]<ecgreport timestamp="2000-01-01 00:00:00"><patient> <id>1</id> <name>xyz</name> <sex>male</sex> <birthdate>1900-01-01 12:00:00</birthdate></patient></ecgreport>\[/code\]XSL:\[code\]<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/"> <html> <body> <h3>CDA Report <xsl:value-of select="ecgreport/@timestamp"/></h3> <table border="1"> <tr bgcolor="#9acdff"> <th>title</th> <th><xsl:text>value</xsl:text></th> </tr> <tr> <td>name</td> <td><xsl:value-of select="ecgreport/patient/name"/></td> </tr> <tr> <td>sex</td> <td><xsl:value-of select="ecgreport/patient/id"/></td> </tr> <tr> <td>birthdate</td> <td><xsl:value-of select="ecgreport/patient/birthdate"/></td> </tr> </table> </body> </html></xsl:template>\[/code\]W3School reports the following (which is what I want):
Wicket leaves me with that:
Wicket code-snippet. The "data" is coming from an ResultSet, System.out shows the xml posted above:\[code\]XsltTransformerBehavior xslb = new XsltTransformerBehavior("ecg1.xsl");xsl = new Label("last_cda",rs.getString("data"));xsl.setEscapeModelStrings(false);xsl.add(xslb);add(xsl);\[/code\]I tried it with Chrome, Firefox, IE10 - I guess they all support XSL by now. I guess I am losing the data within the transforming step. Do I need a DOM-Object for Input? Or have I made another noob-mistake?Thanks for your help