cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: Patch to org.apache.cocoon.sitemap.ContentAggregator
Date Fri, 09 Nov 2001 12:36:17 GMT
Hi Dariusz,

I rewrote some parts of the ContentAggregator dealing with namespaces,
prefixes and the strip-root directive.
All these should now work - it did at least in my test-cases.
Could you please verify this? Thanks!

Carsten

>
> -----Original Message-----
> From: Dariusz Kies [mailto:dariuszkies@yahoo.com]
> Sent: Thursday, November 08, 2001 1:15 PM
> To: cziegeler@apache.org
> Subject: Patch to org.apache.cocoon.sitemap.ContentAggregator
>
>
>
> Hello,
> When I use in sitemap aggregate component like this:
>
> <map:aggregate prefix="xs" element="schema"
> ns="http://www.w3.org/2001/XMLSchema">
>     <map:part src="context:/Type1.xsd" strip-root="true"/>
>     <map:part src="context:/Type2.xsd" strip-root="true"/>
> </map:aggregate>
>
>
> I get exception:
>
> "The element type &quot;xs:schema&quot; must be terminated by the matching
> end-tag &quot;&lt;/xs:schema&gt;&quot;".
>
>
> I think that where is a bug in
> org.apache.cocoon.sitemap.ContentAggregator:
>
> private void endElem(String prefix, String name) throws SAXException {
>   // ...
>   this.contentHandler.endElement(ns, name, name);
>   // ...
> }
>
>
> My resolution is:
>
> private void endElem(String prefix, String name) throws SAXException {
>   // ...
>   String qname = (prefix == null || prefix.equals("")) ? name :
> prefix+':'+name;
>   this.contentHandler.endElement(ns, name, qname);
>   // ...
> }
>
>
> Dariusz Kies
> dariuszkies@yahoo.com
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Find a job, post your resume.
> http://careers.yahoo.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