P
Piet L.
Hey,
I've written a perl script which creates an xml file based on input
parameters.
Now I have an xslt to display the information, but the problem is that
my browser (microsoft internet explorer) can not display the info.
Here is what I use to generate the xml/xslt transformation
my $xslt = XML::XSLT->new (myxsl, warnings => 1);
$xslt->transform (myxsl);
print $xslt->toString;
##print $xslt->serve(myxml);
$xslt->dispose();
My xslt looks like
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xslutput method="html" encoding="ISO-8859-1"/>
<xsl:template match="/">
<html><head>
<link rel="stylesheet"
href="http://www.vub.ac.be/styles/vub.css" type="text/css"/>
</head><body><div id="pageheader"><h1><span>XXX</span></h1>
</div><div id="content"><div id="content"><div
id="contenttitle"><h2><span>MY CONTENTTITLE</span></h2></div><div
id="contenttext"><xsl:for-each select="//publication"><ul><li
value="0"><h4>
<xsl:value-of select="//title_1"/></h4><xsl:value-of
select="//name"/></li></ul></xsl:for-each>
</div></div></div></body></html></xsl:template></xsl:stylesheet>
I didn't display the xml and so, because the transformation works when
I test it in an xslt editor.
The only thing that is display is the title and so,
Does my problem have to do with the xml::xslt parser? And so, how do I
solve this?
thx
I've written a perl script which creates an xml file based on input
parameters.
Now I have an xslt to display the information, but the problem is that
my browser (microsoft internet explorer) can not display the info.
Here is what I use to generate the xml/xslt transformation
my $xslt = XML::XSLT->new (myxsl, warnings => 1);
$xslt->transform (myxsl);
print $xslt->toString;
##print $xslt->serve(myxml);
$xslt->dispose();
My xslt looks like
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xslutput method="html" encoding="ISO-8859-1"/>
<xsl:template match="/">
<html><head>
<link rel="stylesheet"
href="http://www.vub.ac.be/styles/vub.css" type="text/css"/>
</head><body><div id="pageheader"><h1><span>XXX</span></h1>
</div><div id="content"><div id="content"><div
id="contenttitle"><h2><span>MY CONTENTTITLE</span></h2></div><div
id="contenttext"><xsl:for-each select="//publication"><ul><li
value="0"><h4>
<xsl:value-of select="//title_1"/></h4><xsl:value-of
select="//name"/></li></ul></xsl:for-each>
</div></div></div></body></html></xsl:template></xsl:stylesheet>
I didn't display the xml and so, because the transformation works when
I test it in an xslt editor.
The only thing that is display is the title and so,
Does my problem have to do with the xml::xslt parser? And so, how do I
solve this?
thx