cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacomo <giac...@apache.org>
Subject Re: [c2] problems with xincludesaxconnector
Date Fri, 04 May 2001 11:21:02 GMT


On Fri, 4 May 2001, Stuart Roebuck wrote:

> Giacomo,
>
> Thanks for your help, it looks like Sylvain has spotted the problem.

Yeah!

> Apologies if my explanation wasn't very clear!

No problem. If I don't understand it I simply ask :)

Thanks

Giacomo

>
> Stuart.
>
>
> On Thursday, May 3, 2001, at 08:23  pm, giacomo wrote:
> > On Thu, 3 May 2001, Stuart Roebuck wrote:
> >
> >> I'm no namespace expert myself, so I'm not the best person to ask.
> >> However,
> >>   for certain, none of the HTML should have alternative namespaces, so I
> >> reckon that the example I gave should at least look like:
> >>
> >>> <HTML xmlns:ns3="http://foo.bar.com/isyndicate"
> >>> xmlns:ns2="http://foo.bar.
> >>> com/moreover" xmlns:ns1="http://foo.bar.com/slashdot">
> >>> 	<BODY>
> >>> 		<page xmlns="http://foo.bar.com/myspace"> <slashdot
> >>> xmlns="http://foo.bar.com/slashdot">
> >>> 		<table width="100%" border="0">
> >>> 			<tr >
> >>> 				<td STYLE="background-color : #B0E0E6; font : x-small
> >>> Arial, Helvetica,
> >>> sans-serif;" colspan="5">
> >>> 					<CENTER >
> >>> 						<b >Current News from Slashdot</b>
> >>> 					</CENTER>
> >>> 				</td>
> >>> 			</tr>
> >>> 			<tr STYLE="background-color : lightgrey; font : x-small
> >>> Arial, Helvetica,
> >>> sans-serif;">
> >>> 				<td>
> >>> 					<CENTER>
> >>> 						<IMG BORDER="0" HEIGHT="25" WIDTH="25" SRC="topichumor.gif"
> >>> ALT="topichumor.gif"/>
> >>
> >> I suspect <page> and <slashdot> shouldn't have them either, and
the three
> >> namespaces at the beginning don't need to be there if they are not used
> >> later on.
> >
> > This is a SAX problem. How to know a declared namespace isn't used
> > afterward? And as the definition of the aggregation states that there
> > should be namespaces attached to the page and slashdot elements they
> > should appear there.
> >
> > Sorry, I still don't see what the aggregator is doing wrong.
> >
> > Giacomo
> >
> >>
> >> Stuart.
> >>
> >>
> >> On Wednesday, May 2, 2001, at 07:12  pm, giacomo wrote:
> >>
> >>>
> >>> Hi Stuart
> >>>
> >>> Thanks for your test. I'm in no way a namespace expert, so, could you
> >>> give me some suggestion on what we have to change to make it right?
> >>>
> >>> TIA
> >>>
> >>> Giacomo
> >>>
> >>> On Tue, 1 May 2001, Stuart Roebuck wrote:
> >>>
> >>>> Giacomo,
> >>>>
> >>>> Sorry for being a bit brief.  Here's the first 15 lines of the HTML
> >>>> output
> >>>> from Cocoon (CVS about 12 hours ago), looking at the
> >>>> "news/aggregate.xml"
> >>>> match.  The current defaults use the xincludesaxconnector:
> >>>>
> >>>>> <HTML xmlns:ns3="http://foo.bar.com/isyndicate"
> >>>>> xmlns:ns2="http://foo.bar.
> >>>>> com/moreover" xmlns:ns1="http://foo.bar.com/slashdot">
> >>>>> 	<BODY>
> >>>>> 		<page xmlns="http://foo.bar.com/myspace"> <slashdot
> >>>>> xmlns="http://foo.bar.com/slashdot">
> >>>>> 		<table xmlns="http://foo.bar.com/slashdot" width="100%"
> >>>>> border="0">
> >>>>> 			<tr xmlns="http://foo.bar.com/slashdot">
> >>>>> 				<td xmlns="http://foo.bar.com/slashdot"
> >>>>> STYLE="background-color : #B0E0E6; font : x-small Arial, Helvetica,
> >>>>> sans-serif;" colspan="5">
> >>>>> 					<CENTER xmlns="http://foo.bar.com/slashdot">
> >>>>> 						<b xmlns="http://foo.bar.com/slashdot">Current
> >>>>> News from Slashdot</b>
> >>>>> 					</CENTER>
> >>>>> 				</td>
> >>>>> 			</tr>
> >>>>> 			<tr xmlns="http://foo.bar.com/slashdot"
> >>>>> STYLE="background-color : lightgrey; font : x-small Arial, Helvetica,
> >>>>> sans-serif;">
> >>>>> 				<td xmlns="http://foo.bar.com/slashdot">
> >>>>> 					<CENTER xmlns="http://foo.bar.com/slashdot">
> >>>>> 						<IMG xmlns="http://foo.bar.com/slashdot"
> >>>>> BORDER="0" HEIGHT="25" WIDTH="25" SRC="topichumor.gif"
> >>>>> ALT="topichumor.gif"/>
> >>>>
> >>>> As you can see, the 'myspace' and 'slashdot' namespaces have been
> >>>> attributed to HTML tags for no apparent reason.  If you revert to the
> >>>> old
> >>>> saxconnector, these go away.  In most browsers this doesn't seem to
> >>>> make
> >>>> much difference, but it confused OmniWeb enough to alert me to
> >>>> something
> >>>> being wrong.
> >>>>
> >>>> Another issue that is longstanding is that Cocoon outputs HTML with
> >>>> namespace declarations at the beginning for namespaces used during the
> >>>> processing even when they are no-longer required in the final output.
> >>>> Whist it doesn't cause any problems, it is potentially confusing for
> >>>> anyone trying to make sense of the source-code.  Perhaps this is a
> >>>> feature!
> >>>>   :-)
> >>>>
> >>>> Stuart.
> >>>>
> >>>>
> >>>> On Tuesday, May 1, 2001, at 10:07  am, giacomo wrote:
> >>>>
> >>>>>
> >>>>>
> >>>>> On Tue, 1 May 2001, Stuart Roebuck wrote:
> >>>>>
> >>>>>> There are also problems with the almost arbitrary attributing
of
> >>>>>> namespaces to elements processed with the new xincludesaxconnector.
> >>>>>> Look
> >>>>>> at the resulting source output of the aggregation example in
CVS and
> >>>>>> you'll see what I mean.
> >>>>>
> >>>>> Stuart, could you please explain to me what you've found is the
> >>>>> problem
> >>>>> in more detail so that one can use it to correct the behaviour?
> >>>>>
> >>>>> TIA
> >>>>>
> >>>>> Giacomo
> >>>>>
> >>>>>>
> >>>>>> Stuart.
> >>>>>>
> >>>>>> On Monday, April 30, 2001, at 10:45  pm, Donald Ball wrote:
> >>>>>>
> >>>>>>> my issues:
> >>>>>>>
> >>>>>>> 1. why should this be a saxconnector instead of a filter?
> >>>>>>>
> >>>>>>> 2. the schema upon which it operates doesn't conform to
the
> >>>>>>> official
> >>>>>>> xinclude spec, but it operates on the official xinclude
namespace.
> >>>>>>> one
> >>>>>>> or
> >>>>>>> the other needs to change. specifically, at the least, the
src
> >>>>>>> attribute
> >>>>>>> should be an href attribute and the ns and prefix attributes
don't
> >>>>>>> exist.
> >>>>>>>
> >>>>>>> - donald
> >>>>>>>
>
>
> -------------------------------------------------------------------------
> Stuart Roebuck                                  stuart.roebuck@adolos.com
> Lead Developer                               Java, XML, MacOS X, XP, etc.
> ADOLOS                                           <http://www.adolos.com/>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>
>


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


Mime
View raw message