cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuart Roebuck <stuart.roeb...@adolos.co.uk>
Subject Re: [c2] problems with xincludesaxconnector
Date Tue, 01 May 2001 11:45:29 GMT
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
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>> For additional commands, email: cocoon-dev-help@xml.apache.org
>>>
>>

-------------------------------------------------------------------------
Stuart Roebuck, BSc, MBA        Tel.: 0131 228 4853 / Fax.: 0870 054 8322
Managing Director                       Alpha Numeric Pager: 07654 588898
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
>

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


Mime
View raw message