-----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 "xs:schema" must be terminated by the matching
end-tag "</xs:schema>"".
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
|