cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Morandini" <l.mo...@tin.it>
Subject RE: Weird output
Date Thu, 06 Dec 2001 17:39:26 GMT
Mitchell,

I guess it's UsageGen.xsl...

It might be this stylesheet can't match the XML input, hence it, by XSL
default rules, strips input attributes of tags and outputs what's left.

Hope this helps,

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


> -----Original Message-----
> From: Mitchell Christensen [mailto:mchristensen@redknife.com]
> Sent: Thursday, December 06, 2001 6:26 PM
> To: 'cocoon-users@xml.apache.org'
> Subject: RE: Weird output
>
>
> I guess you can never give enough information. (sorry :))
>
> This pipe generates only text (redgreenblue...),
>
>    <map:match pattern="ods/usage">
>     <map:generate type="usage">
> 	<map:parameter name="dburl"
> value="http://stargazer/tamino/microwarehouse/"/>
>     </map:generate>
>     <map:transform type="xslt" src="ods/UsageGen.xsl"/>
>     <map:serialize type="html"/>
>    </map:match>
>
> This one generates raw XML that looks fine.
>
>    <map:match pattern="ods/usageraw">
>     <map:generate type="usage">
> 	<map:parameter name="dburl"
> value="http://stargazer/tamino/microwarehouse/"/>
>     </map:generate>
>     <map:serialize type="xml"/>
>    </map:match>
>
> I save the XML generated here to disk, and use this pipe...
>
>    <map:match pattern="ods/usagesmall">
>     <map:generate type="file" src="ods/usageraw.xml"/>
>     <map:transform type="xslt" src="ods/UsageGen.xsl"/>
>     <map:serialize type="html"/>
>    </map:match>
>
> and get nicely formatted HTML.
>
> -----Original Message-----
> From: David Rosenstrauch [mailto:darose@dti.net]
> Sent: Thursday, December 06, 2001 9:04 AM
> To: cocoon-users@xml.apache.org
> Subject: Re: Weird output
>
>
> Could it be that it's calling the default serializer, and that in
> your case
> that is the text serializer?
>
> Either change the default serializer to be the HTML serializer, or
> explicitly call the HTML serializer (with <map:serialize type="html"/>).
>
> HTH.
>
>
> DR
>
>
> At 09:01 AM 12/6/01 -0800, you wrote:
> >Hi,
> >
> >I have the following logic in my sitemap...
> >
> >my_custom_generator -> xslt_transform -> serializer -> Just text (no HTML
> >tags whatsoever)
> >
> >in an attemp to fix this I did the following...
> >
> >my_custom_generator -> xml_serializer -> file_on_disk -+
> >                                                        |
> >      +-------------------------------------------------+
> >      v
> >file_generator -> same_xslt_transform -> serializer -> Nice looking HTML
> >page.
> >
> >If I generate output from my generator, I get just text.  Like this...
> >
> >redorangeyellowgreenblueindigoviolet
> >
> >If generate the same XML from a file using the file generator, I get nice
> >looking HTML.
> >
> >There seems to be some problem with my Generator, but I don't know what.
> >No errors/exceptions/etc.  I am running Cocoon2rc2 on Linux.  This is
> >my second day poking around at this problem, and any help would be
> >greatly appreciated.
> >
> >Thanks in advance.
> >-Mitch
> >--------------------------
> >Mitch Christensen
> >Principal Architect
> >Redknife, Inc.
> >3095 Independence Dr.
> >Livermore, CA  94550
> >
> >---------------------------------------------------------------------
> >Please check that your question has not already been answered in the
> >FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.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/faqs.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