cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Morandini" <luca.morandi...@tin.it>
Subject RE: Output xsl --- next trap
Date Mon, 30 Sep 2002 13:24:09 GMT
Jessica,

ok, let's get this straight:

1) the myfile.xml XML (actually, an XSP file) produces an XML document (as a SAX stream)
2) the myfile.xsl reads this SAX stream, transforms it, and produces yet another SAX stream
(which happens to be XHTML)
3) your browser displays it

I'd like to see the output of step 1 (I mean, the XML you retrieve from the DBMS).
My idea is that there is a way to do what you want by modifying your XSL code.

Best regards,

--------------------------------------------- 
               Luca Morandini 
               GIS Consultant 
              lmorandini@ieee.org 
http://utenti.tripod.it/lmorandini/index.html 
---------------------------------------------
 

> -----Original Message-----
> From: Jessica Niewint [mailto:j.niewint@kiosco.org]
> Sent: Monday, September 30, 2002 3:14 PM
> To: cocoon-users@xml.apache.org
> Subject: RE: Output xsl --- next trap
> 
> 
> At 13.24 30/09/2002 +0200, you wrote:
> >Jessica,
> >
> >ahem... I wrote: "could you please post the output of myfile.xml (in other 
> >words, the input of myfile.xsl)", while you sent me the
> >"final" output (the one outputted by myfile.xsl).
> >
> >Best regards,
> 
> I am sorry, but I haven't understand where is the difference between my xml 
> file and the "output" of my xml file ???
> How will I get the output of my xml file?
> Following is the output of my xml file opened with IE ... but I have really 
> no idea what do you want to see ... sorry ...
> 
> <?xml version="1.0" encoding="UTF-8" ?>
> - <xsp:page laguage="java" xmlns:xsp="http://apache.org/xsp" 
> xmlns:esql="http://apache.org/cocoon/SQL/v2">
> - <!--
>   Get Document
> -->
> - <Document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
> xsi:noNamespaceSchemaLocation="schema.xsd" 
> xmlns:esql="http://apache.org/cocoon/SQL/v2" 
> xmlns:xsp="http://apache.org/xsp">
> - <esql:connection>
> <esql:pool>xmldb</esql:pool>
> <xsp:logic>String document= "1";</xsp:logic>
> - <esql:execute-query>
> - <esql:query>
> select * from document where DocID=
> <xsp:expr>document</xsp:expr>
> </esql:query>
> - <esql:results>
> - <esql:row-results>
> - <DocObj>
> <esql:get-string column="DocObject" />
> </DocObj>
> - <DocTitle>
> <esql:get-string column="DocTitle" />
> </DocTitle>
> - <DocVer>
> <esql:get-string column="DocVersion" />
> </DocVer>
> - <DocAuth>
> <esql:get-string column="DocAuthor" />
> </DocAuth>
> - <DocDate>
> <esql:get-date column="DocData" />
> </DocDate>
> - <!--
>   Get Sections
> -->
> - <Section>
> - <esql:execute-query>
> - <esql:query>
> select BuildSecID, SecID from secbuild where DocID=
> <xsp:expr>document</xsp:expr>
> order by SecOrdine
> </esql:query>
> - <esql:results>
> - <esql:row-results>
> - <xsp:logic>
> String buildSecID =
> <esql:get-string column="BuildSecID" />
> ; String section =
> <esql:get-string column="SecID" />
> ;
> </xsp:logic>
> - <esql:execute-query>
> - <esql:query>
> select * from section where SecID=
> <xsp:expr>section</xsp:expr>
> </esql:query>
> - <esql:results>
> - <esql:row-results>
> - <SecTitle>
> <esql:get-string column="SecTitle" />
> </SecTitle>
> - <SecContent>
> <esql:get-string column="SecContent" />
> </SecContent>
> - <!--
>   Get Chapter
> -->
> - <Chapter>
> - <esql:execute-query>
> - <esql:query>
> select BuildChapID, ChapID from chapbuild where BuildSecID=
> <xsp:expr>buildSecID</xsp:expr>
> order by ChapOrdine
> </esql:query>
> - <esql:results>
> - <esql:row-results>
> - <xsp:logic>
> String buildchapID =
> <esql:get-string column="BuildChapID" />
> ; String chapter =
> <esql:get-string column="ChapID" />
> ;
> </xsp:logic>
> - <esql:execute-query>
> - <esql:query>
> select * from chapter where ChapID=
> <xsp:expr>chapter</xsp:expr>
> </esql:query>
> - <esql:results>
> - <esql:row-results>
> - <ChapTitle>
> <esql:get-string column="ChapTitle" />
> </ChapTitle>
> - <ChapContent>
> <esql:get-string column="ChapContent" />
> </ChapContent>
> - <Paragraph>
> - <esql:execute-query>
> - <esql:query>
> select ParaID from parabuild where BuildChapID=
> <xsp:expr>chapter</xsp:expr>
> order by ParaOrdine
> </esql:query>
> - <esql:results>
> - <esql:row-results>
> - <xsp:logic>
> String paragraph =
> <esql:get-string column="ParaID" />
> ;
> </xsp:logic>
> - <esql:execute-query>
> - <esql:query>
> select * from paragraph where ParaID=
> <xsp:expr>paragraph</xsp:expr>
> </esql:query>
> - <esql:results>
> - <esql:row-results>
> - <ParaTitle>
> <esql:get-string column="ParaTitle" />
> </ParaTitle>
> - <ParaContent>
> <esql:get-string column="ParaContent" />
> </ParaContent>
> </esql:row-results>
> </esql:results>
> </esql:execute-query>
> </esql:row-results>
> </esql:results>
> </esql:execute-query>
> </Paragraph>
> </esql:row-results>
> </esql:results>
> </esql:execute-query>
> </esql:row-results>
> </esql:results>
> </esql:execute-query>
> </Chapter>
> </esql:row-results>
> </esql:results>
> </esql:execute-query>
> </esql:row-results>
> </esql:results>
> </esql:execute-query>
> </Section>
> </esql:row-results>
> </esql:results>
> </esql:execute-query>
> </esql:connection>
> </Document>
> </xsp:page>
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> 

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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