cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geert Josten <Geert.Jos...@daidalos.nl>
Subject Re: Return of Aggregate with Doctype Adds ">"
Date Wed, 15 Jun 2005 07:02:08 GMT
Not a fix, but a workaround:

Might be possible to direct the map:part to a pipe that strips prolog info from your document.
You 
can do this by processing your document with an XSL transform like:

	<xsl:template match="/">
		<xsl:copy-of select="." />
	</xsl:template>

HTH,
Geert

Eric Caron wrote:

> Hello,
> 
> This was an issue back in 2003, and I haven't found any reference to it 
> since. But I am experience the bug that's been mentioned on the lists 
> before, yet marked as closed.
> The best reference of this bug that I've found is here: 
> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=106162038110627&w=2
> ***Repeated excerpt***
> 
> When a document with a doctype declaration (|<!DCOTYPE>|) is part 
> (|<map:part/>|) of an aggregation (|<map:aggregate/>|), the result is an

> additional |>| (greater-than) prepended to that document's contribution 
> to the aggregate.
> ***End excerpt***
> 
> 
> The entry that causes it is this simple:
> ***
> <map:match pattern="test">
>  <map:aggregate element="a">
>    <map:part src="***PAGE WITH DOCTYPE***" element="b"/>
>  </map:aggregate>
>  <map:serialize type="xml"/>
> </map:match>
> ***
> Using 2.1.7 of Cocoon, 2.6.1-dev of Xalan, the matches are occuring 
> within Lenya. And any help would be appreciated.
> Converting from part to generate, the greater-than goes away, so I'm 
> sure it is within aggregate and related to the doctype handling.
> 
> Thank you,
> Eric Caron
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

-- 
=====================================
NB: het Daidalos kantoor is sinds 22 april
jl. gevestigd op een nieuw adres:

Daidalos BV
Hoekeindsehof 1 - 4
2665 JZ Bleiswijk
tel: +31 (0)10 850 12 00
fax: +31 (0)10 850 11 99

Bovenstaand adres is tevens het postadres.
======================
Geert.Josten@Daidalos.nl
IT-consultant at Daidalos BV

http://www.daidalos.nl/

GPG: 1024D/12DEBB50

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


Mime
View raw message