P
PL
Hey
I'm using in my perl-script following line:
my $xslparser = XML::XSLT->new(Source => $xslfile);
my $result = $xslparser->serve(Source => $xmlfile);
print $result;
Now I'm trying to perform a <xsl:template>, but It gives an empty
result (just <html><body/></html>)
If I try the xls-transformation with altova xmlspy it works
correctly.
Here is the 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="Faculty/select">
<html><body>
<xsl:apply-templates select="group"/>
</body></html>
</xsl:template>
<xsl:template match="Vakgroep[normalize-space(team_type)='V']">
<xsl:value-of select="name_dutch"/>
<xsl:value-of select="team_code"/>)<br/>
</xsl:template>
<xsl:template match="group"/>
</xsl:stylesheet>
The xmlfile looks as follows:
<?xml version="1.0" encoding="ISO-8859-1"?>
<Faculty><select><group>
<team_code>DWIS</team_code>
<name_dutch>Wiskunde</name_dutch>
<team_type>V</team_type>
</group></select></Faculty>
I've taken a look at cpan, and I'm thinking that the problem is that
certain thinks are not supported in de module.
Can someone help?
Thanks
I'm using in my perl-script following line:
my $xslparser = XML::XSLT->new(Source => $xslfile);
my $result = $xslparser->serve(Source => $xmlfile);
print $result;
Now I'm trying to perform a <xsl:template>, but It gives an empty
result (just <html><body/></html>)
If I try the xls-transformation with altova xmlspy it works
correctly.
Here is the 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="Faculty/select">
<html><body>
<xsl:apply-templates select="group"/>
</body></html>
</xsl:template>
<xsl:template match="Vakgroep[normalize-space(team_type)='V']">
<xsl:value-of select="name_dutch"/>
<xsl:value-of select="team_code"/>)<br/>
</xsl:template>
<xsl:template match="group"/>
</xsl:stylesheet>
The xmlfile looks as follows:
<?xml version="1.0" encoding="ISO-8859-1"?>
<Faculty><select><group>
<team_code>DWIS</team_code>
<name_dutch>Wiskunde</name_dutch>
<team_type>V</team_type>
</group></select></Faculty>
I've taken a look at cpan, and I'm thinking that the problem is that
certain thinks are not supported in de module.
Can someone help?
Thanks