What error do you get? What source XML document are you using? If there's a problem we can try fix it.
 
James
----- Original Message -----
Sent: Friday, June 08, 2001 6:49 AM
Subject: [dom4j-user] XSL -> DOM4J

Hi Folks,

i would like to change a XSL-file to the dom4j but it doesn't work

can anybody help me?
 
XSL-Code
----------------
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text" omit-xml-declaration="yes" indent="yes"/>
 
<xsl:template match="/">
<xsl:apply-templates select="/probability_group"/>
</xsl:template>
 
<xsl:template match="probability_group">
    switch (probability) {
<xsl:apply-templates select="./probability"/>
default:
 
<xsl:value-of select="./text()"/>
break;
    }
</xsl:template>
 
<xsl:template match="probability">
    case <xsl:value-of select="@value"/>:
    <xsl:value-of select="./text()"/>
    <xsl:apply-templates select="./probability_group"/>
    break;
</xsl:template>
 
</xsl:stylesheet>
----------------------

Regards

Ado

Reply via email to