You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Volkm@r" <pl...@arcor.de> on 2004/05/16 12:37:22 UTC
Aggregator Bug?
I found that aggregating with an xhtml file puts a ">" before it when
there is a doctype declaration in the file.
So, the following sitemap
<map:pipeline type="noncaching">
<map:match pattern="**.aggreg">
<map:aggregate element="fortesting">
<map:part src="{1}"/>
</map:aggregate>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
with a simple xhtml file like this
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="de" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hallo</title>
</head>
<body>
<p>Hi there!</p>
</body>
</html>
will give the following result with a surplus ">" at the beginning of
line 3.
<?xml version="1.0" encoding="UTF-8"?>
<fortesting>
><html xml:lang="de" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hallo</title>
</head>
<body>
<div>Hi there!</div>
</body>
</html></fortesting>
Is this a bug or did I misconfigure something?
--
Volkmar W. Pogatzki
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Aggregator Bug?
Posted by Jorg Heymans <jh...@domek.be>.
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=105169303607664&w=2
Volkm@r wrote:
> I found that aggregating with an xhtml file puts a ">" before it when
> there is a doctype declaration in the file.
>
> So, the following sitemap
>
> <map:pipeline type="noncaching">
> <map:match pattern="**.aggreg">
> <map:aggregate element="fortesting">
> <map:part src="{1}"/>
> </map:aggregate>
> <map:serialize type="xml"/>
> </map:match>
> </map:pipeline>
>
> with a simple xhtml file like this
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xml:lang="de" xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <title>Hallo</title>
> </head>
> <body>
> <p>Hi there!</p>
> </body>
> </html>
>
> will give the following result with a surplus ">" at the beginning of
> line 3.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <fortesting>
> ><html xml:lang="de" xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <title>Hallo</title>
> </head>
> <body>
> <div>Hi there!</div>
> </body>
> </html></fortesting>
>
> Is this a bug or did I misconfigure something?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: Aggregator Bug?
Posted by David Leangen <dl...@canada.com>.
To sum up all the other threads on the issue...
This nice "feature" magically disappears after you use any transformer. So
you don't need to worry about it.
> -----Original Message-----
> From: news [mailto:news@sea.gmane.org]On Behalf Of Volkm@r
> Sent: May 16, 2004 19:37
> To: users@cocoon.apache.org
> Subject: Aggregator Bug?
>
>
> I found that aggregating with an xhtml file puts a ">" before it when
> there is a doctype declaration in the file.
>
> So, the following sitemap
>
> <map:pipeline type="noncaching">
> <map:match pattern="**.aggreg">
> <map:aggregate element="fortesting">
> <map:part src="{1}"/>
> </map:aggregate>
> <map:serialize type="xml"/>
> </map:match>
> </map:pipeline>
>
> with a simple xhtml file like this
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xml:lang="de" xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <title>Hallo</title>
> </head>
> <body>
> <p>Hi there!</p>
> </body>
> </html>
>
> will give the following result with a surplus ">" at the beginning of
> line 3.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <fortesting>
> ><html xml:lang="de" xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <title>Hallo</title>
> </head>
> <body>
> <div>Hi there!</div>
> </body>
> </html></fortesting>
>
> Is this a bug or did I misconfigure something?
> --
> Volkmar W. Pogatzki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org