cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Collen <tcol...@neuagency.com>
Subject RE: [CRASH] 2.1-Dev with HTMLGenerator & Transformer
Date Thu, 03 Apr 2003 06:39:57 GMT
On 1 Apr 2003, Bruno Dumon wrote:

> I've tried out your sample, and had the same problem. After putting in a
> logtransformer, I noticed that the endDocument SAX event was called
> twice.
>
> I've updated CVS to correct this behaviour.


Bruno,

I'm making a little bit of progress, but I'm still having problems getting
the XSL to go through successfully.  The crashes and exceptions have
stopped, but now I'm still experiencing some strangeness with XSL.  Here's
my sitemap:

<map:match pattern="wx/mn.xml">
    <map:generate type="html" src="http://www.crh.noaa.gov/data/forecasts/MNZ060.php?warncounty=mnc053&amp;city=Minneapolis">
        <map:parameter name="xpath" value="/html/body/table[4]/tr[4]/td[2]/table[1]/tr[2]/td[1]/table[1]/tr[1]/td[2]/table[1]"/>
    </map:generate>

    <map:transform type="log">
        <map:parameter name="logfile" value="out.log"/>
    </map:transform>


    <map:transform src="stylesheets/zone.xsl"/>
    <map:serialize type="xml"/>
</map:match>


And here's the XSL I'm using (pretty basic):

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/table">
    <root>
        <width><xsl:value-of select="@width"/></width>
    </root>
</xsl:template>
</xsl:stylesheet>

Can you confirm this is not working correctly?  Unfortunately I'm not too
adept at interpreting the LogTransformer's output, so I'll need to enlist
your help for that.  This isn't a matter of stupid XSL, or some other
boneheaded oversight on my part, is it?


Thanks again,

Tony


--
Tony Collen
ICQ: 12410567 IRC: irc.byxnet.net
--
Cocoon: Internet Glue (A Cocoon Weblog)
http://manero.org/weblog/
--


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message