logo       

Re: [xmlc] XHTML output?: msg#00023

java.enhydra.xmlc

Subject: Re: [xmlc] XHTML output?


Ok, looking at the source for DomType, the only way that you would get the message "expected one of 'lazydom' or 'xerces'" is if you didn't have the XHTML DOM (or other optional DOM's) in the classpath. This means you are probably using xmlc.jar and aren't including the xhtml.jar in the classpath. The easiest way to make sure you have everything you might need in the classpath is to use xmlc-all-runtime.jar. Once you have that there, using dom="xhtml" will work. DomType treats the value "xhtml" as a valid input only if the XHTML DOM is in the classpath. Same goes for the other optional DOM's.

So, use options.xmlc that I posted below and put the XHTML DOM in the classpath, either via the xmlc.jar + xhtml.jar or via the xmlc-all-runtime.jar.

BTW, I did fix the extra quote. Thanks for noticing that.


Jake

At 07:07 PM 9/2/2005 -0500, you wrote:
>
>Try something like this in options.xmlc...
>
><?xml version='1.0'?>
><!DOCTYPE xmlc PUBLIC " -//ENHYDRA//DTD XMLC 1.1//EN"
> "http://www.enhydra.org/xml/xmlc/xmlc-1.1.dtd";>
><xmlc>
>
> <compileOptions classOutputRoot="." warnings="true"/>
>
> <inputDocument documentFormat="xml" processSSI="true"/>
>
> <parser name="xerces"/>
>
> <documentClass deferParsing="true" dom="xhtml"/>
>
> <domEdits>
> <deleteElement elementClasses="RemoveMe"/>
> <urlMapping newUrl="http://bar.com"; url="http://foo.com"/>
> </domEdits>
>
></xmlc>
>
>WFM. And make sure not to use the recompilation parmeter. That is
>obsolete. "deferParsing" takes its place. "createGetTagMethods" is also
>unnecessary.
>
>
>Jake
>
>At 09:12 AM 9/2/2005 -0700, you wrote:
> >Great idea, but...
> >
> >java.lang.IllegalArgumentException: Invalid DOMType:
> >"xhtml", expected
> >one of "lazydom" or "xerces
> > at
> >org.enhydra.xml.xmlc.metadata.DOMType.getType(DOMType.java:159)
> > at
> >org.enhydra.xml.xmlc.metadata.DocumentClass.getDom(DocumentClass.java:306)
> > at
> >org.enhydra.xml.xmlc.metadata.DocumentClass.getDomFactoryClass(DocumentC lass
> >.java:329)
> > at
> >org.enhydra.xml.xmlc.compiler.Parse.parse(Parse.java:228)
> > at
> >org.enhydra.xml.xmlc.deferredparsing.DocumentLoaderImpl.parseDocument(Do cume
> >ntLoaderImpl.java:518)
> > at
> >org.enhydra.xml.xmlc.deferredparsing.DocumentLoaderImpl.getCacheEntry(Do cume
> >ntLoaderImpl.java:168)
> > at
> >org.enhydra.xml.xmlc.deferredparsing.DocumentLoaderImpl.getDocument(Docu ment
> >LoaderImpl.java:222)
> >
> >(might wanna fix that missing final quote)
> >
> >--- Jacob Kjome <hoju@xxxxxxxx> wrote:
> >
> >> Quoting Erik Rasmussen <i_am_erik@xxxxxxxxx>:
> >>
> >> >
> >> > --- Jacob Kjome <hoju@xxxxxxxx> wrote:
> >> > > I'll have to see if I can reproduce this when I
> >> get
> >> > > home from work. Haven't
> >> > > seen that happen, personally. What version of
> >> XMLC
> >> > > are you using?
> >> >
> >> > 2.2.6
> >> >
> >> > > Also, what DOMFactory are you using?
> >> >
> >> > lazydom
> >> >
> >> > > One of these?...
> >> > >
> >> >
> >>
> >http://cvs.forge.objectweb.org/cgi-bin/viewcvs.cgi/xmlc/xmlc/xmlc/module s/xh
> >tml/src/org/enhydra/xml/xhtml/
> >> >
> >> > Hmm. I'm setting it in my option.xmlc:
> >> > <documentClass deferParsing="true"
> >> > recompilation="true"
> >> > createGetTagMethods="true"
> >> > dom="lazydom"/>
> >> >
> >>
> >> try dom="xhtml"
> >>
> >> Might be a couple other things to configure here,
> >> but I can't recall offhand.
> >> I'll double check when I get home.
> >>
> >> > >From the documentation on this page, it looked
> >> like my
> >> > only options were xerces and lazydom. Presumably
> >> > there's an "xhtml" option or something?
> >> >
> >>
> >http://xmlc.objectweb.org/doc/doc/xmlc/user-manual/metadata/xmlc-docclas s-xs
> >d.html#documentClass
> >> >
> >>
> >> Yep, docs haven't been updated. Sorry about that.
> >>
> >> > > I won't be able to comment more today until I
> >> get
> >> > home.
> >> >
> >> > That's the problem with open source...all the
> >> > developers have day jobs! :-)
> >> >
> >>
> >> I'm definitely open to being paid for open source
> >> development :-)
> >>
> >> > Erik
> >>
> >>
> >>
> >>
> >> >
> >> --
> >> You receive this message as a subscriber of the
> >> xmlc@xxxxxxxxxxxxx mailing list.
> >> To unsubscribe:
> >> mailto:xmlc-unsubscribe@xxxxxxxxxxxxx
> >> For general help:
> >> mailto:sympa@xxxxxxxxxxxxx?subject=help
> >> ObjectWeb mailing lists service home page:
> >> http://www.objectweb.org/wws
> >>
> >
> >
> >
> >
> >__________________________________
> >Do you Yahoo!?
> >Read only the mail you want - Yahoo! Mail SpamGuard.
> >http://promotions.yahoo.com/new_mail
> >
> >
> >--
> >You receive this message as a subscriber of the xmlc@xxxxxxxxxxxxx mailing
> >list.
> >To unsubscribe: mailto:xmlc-unsubscribe@xxxxxxxxxxxxx
> >For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help
> >ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>
>
>--
>You receive this message as a subscriber of the xmlc@xxxxxxxxxxxxx mailing
>list.
>To unsubscribe: mailto:xmlc-unsubscribe@xxxxxxxxxxxxx
>For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help
>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the xmlc@xxxxxxxxxxxxx mailing list.
To unsubscribe: mailto:xmlc-unsubscribe@xxxxxxxxxxxxx
For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise