You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@abdera.apache.org by Jason Calabrese <ma...@jasoncalabrese.com> on 2007/10/09 23:55:32 UTC
XHTML content and
When I try to set an Entry's content with xhtml containing I get a
parse error.
How can I declare the nbsp entity?
Here the stack trace that I get:
rg.apache.abdera.parser.ParseException: [com.ctc.wstx.exc.WstxLazyException]
com.ctc.wstx.exc.WstxParsingException: Undeclared general entity "nbsp"
at [row,col {unknown-source}]: [8,162]
at org.apache.abdera.parser.stax.FOMBuilder.next(FOMBuilder.java:253)
at org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:318)
at
org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:614)
at
org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:583)
at
org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:117)
at
org.apache.axiom.om.impl.llom.OMElementImpl.setFirstChild(OMElementImpl.java:571)
at
org.apache.abdera.parser.stax.FOMContent.setValueElement(FOMContent.java:151)
at
org.apache.abdera.parser.stax.FOMContent.setValue(FOMContent.java:266)
at
org.apache.abdera.parser.stax.FOMEntry.setContent(FOMEntry.java:212)
at
com.scholaruniverse.api.profiles.output.AtomGroovyOutput.createEntry(AtomGroovyOutput.java:151)
at
com.scholaruniverse.api.profiles.output.AtomGroovyOutput.outputFeed(AtomGroovyOutput.java:103)
at
com.scholaruniverse.api.profiles.output.AtomGroovyOutput.process(AtomGroovyOutput.java:44)
at
com.scholaruniverse.api.profiles.ProfilesService.process(ProfilesService.java:85)
at
com.scholaruniverse.api.AbstractService.service(AbstractService.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: [com.ctc.wstx.exc.WstxLazyException]
com.ctc.wstx.exc.WstxParsingException: Undeclared general entity "nbsp"
at [row,col {unknown-source}]: [8,162]
at
com.ctc.wstx.exc.WstxLazyException.throwLazily(WstxLazyException.java:45)
at
com.ctc.wstx.sr.StreamScanner.throwLazyError(StreamScanner.java:704)
at
com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3657)
at
com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:809)
at
org.apache.axiom.om.impl.builder.StAXBuilder.createOMText(StAXBuilder.java:245)
at
org.apache.axiom.om.impl.builder.StAXBuilder.createOMText(StAXBuilder.java:218)
at
org.apache.abdera.parser.stax.FOMBuilder.applyTextFilter(FOMBuilder.java:155)
at org.apache.abdera.parser.stax.FOMBuilder.next(FOMBuilder.java:203)
... 28 more
Re: XHTML content and
Posted by James M Snell <ja...@gmail.com>.
I've checked a fix for this into trunk. Using ParserOptions, a user can
register entities. The 252 default HTML entities are preregistered.
You can add to that set or reregister with your own replacements. The
replacement is enabled by default but can be turned off if your
application requires.
- James
Josh Peters wrote:
> On Oct 9, 2007, at 11:22 PM, Adam Constabaris wrote:
>
>> Use the numeric equivalent,   instead.
>
> Alternatively you can specify the XHTML doctype at the top of your Entry
> (or Feed) to get the entities. Better than that you can download a copy
> of the XHTML doctype and view that it references some entity files which
> you can then hack together to make your entity-only doctype.
>
> But I'll agree with Adam, go numeric if you can.
>
>> AC
>>
>> Jason Calabrese wrote:
>>> When I try to set an Entry's content with xhtml containing I
>>> get a parse error.
>>>
>>> How can I declare the nbsp entity?
>>>
>>
>
Re: XHTML content and
Posted by Josh Peters <jc...@gmail.com>.
On Oct 9, 2007, at 11:22 PM, Adam Constabaris wrote:
> Use the numeric equivalent,   instead.
Alternatively you can specify the XHTML doctype at the top of your
Entry (or Feed) to get the entities. Better than that you can
download a copy of the XHTML doctype and view that it references some
entity files which you can then hack together to make your entity-
only doctype.
But I'll agree with Adam, go numeric if you can.
> AC
>
> Jason Calabrese wrote:
>> When I try to set an Entry's content with xhtml containing
>> I get a parse error.
>>
>> How can I declare the nbsp entity?
>>
>
Re: XHTML content and
Posted by Adam Constabaris <ad...@clownsinmycoffee.net>.
Use the numeric equivalent,   instead.
AC
Jason Calabrese wrote:
> When I try to set an Entry's content with xhtml containing I get a
> parse error.
>
> How can I declare the nbsp entity?
>