You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by David Leangen <dl...@canada.com> on 2004/03/01 00:42:49 UTC
RE: Strange output from aggregator (bug?)
Hi!
> It's probably embedded as a quote if you're using mozilla
> so more like
>
> <r>
>
> ">"<a>
>
> asdf
> </a></r>
>
> Note the quotes around the ">"
When I look at the XML source (using View-->Page Source), there don't seem
to be any quotes.
Also, what's interesting is that when I use namespaces, I get something like
the following:
<ac:aggregated-content>
xmlns:ac="http://konova.com/ns/expedition-aggregated-content">
...
</ac:aggregated-content>
Note that the attribute of the root tag is after the ">", but itself has its
own closing ">".
I tried this in IE, and got the following error:
******************
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and
then click the Refresh button, or try again later.
------------------------------------------------
Reference to undeclared namespace prefix: 'ac'. Error processing resource
'http://localhost:8888/ns/test'. Line 2, Position 24
<ac:aggregated-content>
******************
This error makes sense only if the extra ">" is being output.
> @David: which version are you using?
2.1.3
I'm ok with this, since the problem magically goes away with the use of any
transformer or a serializer other than XML. However, I thought that someone
would like to know.
Regards,
David
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Strange output from aggregator (bug?)
Posted by Joerg Heinicke <jo...@gmx.de>.
On 01.03.2004 04:03, Milkwayboat wrote:
> I met a similar error when I used sql transformer on linux. It added an
> extra name space, the same as the original one. so mozilla cannot show that
> page. I think it is a bug. Maybe you can write a special serializer for it.
> but I am not sure if all serializer require a XML input without any error in
> it..
The SQLTransformer probably has its own bug:
http://issues.apache.org/bugzilla/show_bug.cgi?id=25203.
The behaviour of both (SQLTransformer's double namespace declaration and
the described problem with > in map:aggregate) and the serializer not
complaining about those errors shows that the serializer does not need
well-formed XML input. Only the parser needs it - and so you get the
errors in Mozilla or IE. Such errors in the XML stream are often
"accidently" fixed in following transformer steps.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Strange output from aggregator (bug?)
Posted by Milkwayboat <mi...@hotmail.com>.
I met a similar error when I used sql transformer on linux. It added an
extra name space, the same as the original one. so mozilla cannot show that
page. I think it is a bug. Maybe you can write a special serializer for it.
but I am not sure if all serializer require a XML input without any error in
it..
----- Original Message -----
From: "David Leangen" <dl...@canada.com>
To: <us...@cocoon.apache.org>
Sent: Sunday, February 29, 2004 3:42 PM
Subject: RE: Strange output from aggregator (bug?)
>
> Hi!
>
> > It's probably embedded as a quote if you're using mozilla
> > so more like
> >
> > <r>
> >
> > ">"<a>
> >
> > asdf
> > </a></r>
> >
> > Note the quotes around the ">"
>
> When I look at the XML source (using View-->Page Source), there don't seem
> to be any quotes.
>
> Also, what's interesting is that when I use namespaces, I get something
like
> the following:
>
> <ac:aggregated-content>
> xmlns:ac="http://konova.com/ns/expedition-aggregated-content">
> ...
> </ac:aggregated-content>
>
> Note that the attribute of the root tag is after the ">", but itself has
its
> own closing ">".
>
>
> I tried this in IE, and got the following error:
>
> ******************
>
> The XML page cannot be displayed
> Cannot view XML input using XSL style sheet. Please correct the error and
> then click the Refresh button, or try again later.
>
>
> ------------------------------------------------
>
> Reference to undeclared namespace prefix: 'ac'. Error processing resource
> 'http://localhost:8888/ns/test'. Line 2, Position 24
>
> <ac:aggregated-content>
>
> ******************
>
> This error makes sense only if the extra ">" is being output.
>
>
> > @David: which version are you using?
>
> 2.1.3
>
>
> I'm ok with this, since the problem magically goes away with the use of
any
> transformer or a serializer other than XML. However, I thought that
someone
> would like to know.
>
>
> Regards,
> David
>
>
>
>
>
> ---------------------------------------------------------------------
> 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
Re: Strange output from aggregator (bug?)
Posted by Jorg Heymans <jh...@domek.be>.
just tried this in 2.1.5dev and got
<?xml version="1.0" encoding="ISO-8859-1"?>
<root>
<a>
<a-tag>Something</a-tag>
</a>
<b>
<b-tag>Something</b-tag>
</b>
</root>
This does look ok to me :)
I had to remove the doctype declaration from your xml files.
HTH
Jorg
David Leangen wrote:
> Jorg,
>
> Sorry for my late reply. I thought that I would have the time to do this,
> but I had a very busy week.
>
> So, attached is the test file that I mentioned along with a minimal sitemap.
>
> You can use this and view "a.xml", "b.xml" or "ab.xml". In each case, the
> extra ">" appears.
>
>
> Regards,
> David
>
>
>
>
>>-----Original Message-----
>>From: news [mailto:news@sea.gmane.org]On Behalf Of Jorg Heymans
>>Sent: March 1, 2004 17:49
>>To: users@cocoon.apache.org
>>Subject: Re: Strange output from aggregator (bug?)
>>
>>
>>Are you in a position to quickly test this against 2.1.4 ? If not post
>>your a.xml file so we can test this.
>>
>>
>>Thanks
>>Jorg
>>
>>
>>------------------------------------------------------------------------
>>
>><?xml version="1.0" encoding="ISO-8859-1"?>
>><!DOCTYPE a PUBLIC "-//KONOVA//DTD Test//EN"
>> "http://www.konova.com/dtd/test.dtd">
>>
>><a>
>> <a-tag>Something</a-tag>
>></a>
>>
>>
>>------------------------------------------------------------------------
>>
>><?xml version="1.0" encoding="ISO-8859-1"?>
>><!DOCTYPE b PUBLIC "-//KONOVA//DTD Test//EN"
>> "http://www.konova.com/dtd/test.dtd">
>>
>><b>
>> <b-tag>Something</b-tag>
>></b>
>>
>>
>>------------------------------------------------------------------------
>>
>>---------------------------------------------------------------------
>>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
RE: Strange output from aggregator (bug?)
Posted by David Leangen <dl...@canada.com>.
Jorg,
Sorry for my late reply. I thought that I would have the time to do this,
but I had a very busy week.
So, attached is the test file that I mentioned along with a minimal sitemap.
You can use this and view "a.xml", "b.xml" or "ab.xml". In each case, the
extra ">" appears.
Regards,
David
> -----Original Message-----
> From: news [mailto:news@sea.gmane.org]On Behalf Of Jorg Heymans
> Sent: March 1, 2004 17:49
> To: users@cocoon.apache.org
> Subject: Re: Strange output from aggregator (bug?)
>
>
> Are you in a position to quickly test this against 2.1.4 ? If not post
> your a.xml file so we can test this.
>
>
> Thanks
> Jorg
Re: Strange output from aggregator (bug?)
Posted by Jorg Heymans <jh...@domek.be>.
Are you in a position to quickly test this against 2.1.4 ? If not post
your a.xml file so we can test this.
Thanks
Jorg
David Leangen wrote:
> Hi!
>
>
>>It's probably embedded as a quote if you're using mozilla
>>so more like
>>
>><r>
>>
>>">"<a>
>>
>>asdf
>></a></r>
>>
>>Note the quotes around the ">"
>
>
> When I look at the XML source (using View-->Page Source), there don't seem
> to be any quotes.
>
> Also, what's interesting is that when I use namespaces, I get something like
> the following:
>
> <ac:aggregated-content>
> xmlns:ac="http://konova.com/ns/expedition-aggregated-content">
> ...
> </ac:aggregated-content>
>
> Note that the attribute of the root tag is after the ">", but itself has its
> own closing ">".
>
>
> I tried this in IE, and got the following error:
>
> ******************
>
> The XML page cannot be displayed
> Cannot view XML input using XSL style sheet. Please correct the error and
> then click the Refresh button, or try again later.
>
>
> ------------------------------------------------
>
> Reference to undeclared namespace prefix: 'ac'. Error processing resource
> 'http://localhost:8888/ns/test'. Line 2, Position 24
>
> <ac:aggregated-content>
>
> ******************
>
> This error makes sense only if the extra ">" is being output.
>
>
>
>>@David: which version are you using?
>
>
> 2.1.3
>
>
> I'm ok with this, since the problem magically goes away with the use of any
> transformer or a serializer other than XML. However, I thought that someone
> would like to know.
>
>
> Regards,
> David
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org