Steven,
there was a bug causing attempts for nested inclusion to fail. It's
fixed for the coming version (hopefully).
Thanks for telling us about the problem.
Tom Kaiser
Steven Newson wrote:
>
> Hi again,
>
> Same thing happens with 0.42. The test data is rather large so I'll
> condense it a little....(though it still exhibits the same problem)
>
> TIA
>
> S.
>
> <!---------- root.xsl -------------->
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE xsl:stylesheet [
> <!ENTITY nbsp " ">
> <!ENTITY nl "
">
> <!ENTITY pound "£">
> ]>
> <!-- edited with XML Spy v3.0.7 NT (http://www.xmlspy.com) by Craig Burton
> (n/a) -->
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns="http://www.w3.org/TR/xhtml1/strict"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <xsl:output encoding="utf-8"/>
> <xsl:include href="file://mainhtml.xsl"/>
> <xsl:template match="blob">
> <xsl:choose>
> <xsl:when test="Output/OutputType = 'HTML'">
> <xsl:call-template name="mainhtml"/>
> </xsl:when>
> <xsl:otherwise>
> <xsl:call-template name="mainhtml"/>
> </xsl:otherwise>
> </xsl:choose>
> </xsl:template>
> </xsl:stylesheet>
>
> <!---------- mainhtml.xsl -------------->
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE xsl:stylesheet [
> <!ENTITY nbsp " ">
> <!ENTITY nl "
">
> <!ENTITY pound "£">
> ]>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <xsl:include href="file://asksearch.xsl"/>
> <xsl:include href="file://smalllogin.xsl"/>
> <xsl:include href="file://loggedin.xsl"/>
> <xsl:include href="file://showresults.xsl"/>
>
> <xsl:template name="mainhtml">
> <html>
> <head>
> <title>ToWebpages</title>
> </head>
> <body bgcolor="#FF6600">
> </body>
> </html>
> </xsl:template>
> </xsl:stylesheet>
>
> <!---------- asksearch.xsl -------------->
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE xsl:stylesheet [
> <!ENTITY nbsp " ">
> <!ENTITY nl "
">
> <!ENTITY pound "£">
> ]>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
>
> <xsl:template name="asksearch">
> <table>
> </table>
> </xsl:template>
>
> </xsl:stylesheet>
>
> <!---------- loggedin.xsl -------------->
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <xsl:template name="loggedin">
> <table align="right">
> <tr>
> <td>Hello <b><xsl:value-of
> select="UserInfo/RealName"/></b> you are logged in as <b><xsl:value-of
> select="UserInfo/UserName"/></b></td>
> </tr>
> </table>
> </xsl:template>
> </xsl:stylesheet>
>
> <!---------- showresults.xsl -------------->
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE xsl:stylesheet [
> <!ENTITY nbsp " ">
> <!ENTITY nl "
">
> <!ENTITY pound "£">
> ]>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <xsl:include href="results-functions.xsl"/>
>
> <xsl:template name="showresults">
> <table border="0" cellpadding="0" cellspacing="0" width="400">
> </table>
> </xsl:template>
>
> </xsl:stylesheet>
>
> <!---------- smalllogin.xsl -------------->
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <xsl:template name="smalllogin">
> <a href="login.html">Click to login</a><br/>
> <a href="register.html">Register</a>
> </xsl:template>
> </xsl:stylesheet>
>
> <!---------- results-functions.xsl -------------->
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE xsl:stylesheet [
> <!ENTITY nbsp " ">
> <!ENTITY nl "
">
> <!ENTITY pound "£">
> ]>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
>
> <xsl:template name="test">
> ... Rather a large amount of code would go here ...
> </xsl:template>
>
> </xsl:stylesheet>
>
> <!---------- data.xml -------------->
> <?xml version="1.0"?>
> <!-- edited with XML Spy v3.0.7 NT (http://www.xmlspy.com) by Craig Burton
> (n/a) -->
> <blob>
> <CGIVars>
> <action>search</action>
> <SearchCriteria>
> <who>euromarble</who>
> <what>marble</what>
> <where>n88ql</where>
> <area>50 miles</area>
> <t>104</t>
> <q>www_2000_54</q>
> </SearchCriteria>
> <WebsafeCriteria>
> <who>euromarble</who>
> <what>marble</what>
> <where>n8+8ql</where>
> <area>50+miles</area>
> <t>104</t>
> <q>www_2000_54</q>
> </WebsafeCriteria>
> </CGIVars>
> <UserInfo>
> <Options>
> <LayoutTemplate>Default</LayoutTemplate>
> <AssumeLocation>Home</AssumeLocation>
> <OutputType>HTML</OutputType>
> <ResultsPerPage>20</ResultsPerPage>
> </Options>
> <Locations>
> <Home>N42DL</Home>
> <Lads>N88QL</Lads>
> <Work>N82QL</Work>
> </Locations>
> <UserName>Noose</UserName>
> <RealName>Test User</RealName>
> <SessionID>vMMqn69fE!_qzNfk</SessionID>
> <EmailAddress>[EMAIL PROTECTED]</EmailAddress>
> </UserInfo>
> </blob>
>
> At 08:52 01/09/00, you wrote:
> >It looks like a bug.
> >
> >Please, try to run the same case with version 0.42 and tell us the
> >results. Version 0.43 uses new memory management model and is not
> >perfectly stable so far.
> >
> >Send us, what happens regardless on result (success or not).
> >
> >Having the test data would be fine.
> >
> >Thanks
> >
> >
> >Pavel
> >
> >Steven Newson wrote:
> >
> >>Hi all!
> >>Just been playing around with sab. and received this message:
> >>perl: ./engine/parser.cpp:145: Bool
> >>TreeConstructer::parseUsingSAXForAWhile(): Assertion `!theOutputter' failed.
> >>Aborted
> >>Basically, I have a root.xsl script which makes a couple of decisions.
> >>It "includes" a second level script which in turn includes four other
> >>scripts. The scripts work fine elsewhere (M$XML) and I've stripped them
> >>down anyway. From the log results:
> >>sabcmd --log-file=out root.xsl data.xml
> >>Parsing 'file:/home/steve/root.xsl'...
> >>Parsing 'file://mainhtml.xsl'...
> >>Parse done in 0.002 seconds
> >>Parsing 'file://asksearch.xsl'...
> >>Parse done in 0.005 seconds
> >>If anyone could explain this I would greatly appreciate it :)
> >>TIA
> >>S.
> >
> >--
> >Pavel Hlavnicka
> >Ginger Alliance Ltd.
> >Prague; Czech Republic
> >