cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mansour Al Akeel <mansour.alak...@gmail.com>
Subject Passing parameters from sitemap readers.
Date Mon, 11 Feb 2013 14:08:27 GMT
I started using 3.0.0-beta-1-SNAPSHOT. I was prototyping with 3.0.0-alpha-3.
However, I wrote a few readers where I can pass parameters as an
attribute in the sitemap:

For example:

<map:read type="myReader" id="{map:1}" lang="{map:2}" prop="{global:myProp}" />


After I switched to beta-1 I started getting:

8:54:14.567 [btpool0-1] ERROR o.a.cocoon.servlet.XMLSitemapServlet -
Can't initialize the RequestProcessor correctly.
org.apache.cocoon.sitemap.SitemapBuilder$SitemapBuilderException:
Can't build sitemap from
file:/home/mansour/workspace/........./contents-filesystem/src/main/resources/COB-INF/sitemap.xmap
	at org.apache.cocoon.sitemap.SitemapBuilder.build(SitemapBuilder.java:70)
~[cocoon-sitemap-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
	at org.apache.cocoon.servlet.RequestProcessor.initializeSitemap(RequestProcessor.java:203)
~[cocoon-servlet-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
	at org.apache.cocoon.servlet.RequestProcessor.<init>(RequestProcessor.java:83)
~[cocoon-servlet-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
	at org.apache.cocoon.servlet.XMLSitemapServlet.lazyInitialize(XMLSitemapServlet.java:68)
[cocoon-servlet-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
	at org.apache.cocoon.servlet.XMLSitemapServlet.service(XMLSitemapServlet.java:46)
[cocoon-servlet-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
.....
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2:
Attribute 'id' is not allowed to appear in element 'map:read'.
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
~[na:1.6.0_37]
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
~[na:1.6.0_37]
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
~[na:1.6.0_37]
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
~[na:1.6.0_37]


Is there something I need to change to allow parameters to be passed
in the same way ??

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


Mime
View raw message