Re: [xmlc] XHTML output?

Jacob Kjome <[email protected]> Fri, 02 Sep 2005 21:38:07 -0500
Newsgroups gmane.comp.java.enhydra.xmlc
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1125715131-27247-255
Content-Type: text/plain; charset="us-ascii"; format=flowed


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 <[email protected]> wrote:
 > >
 > >> Quoting Erik Rasmussen <[email protected]>:
 > >>
 > >> >
 > >> > --- Jacob Kjome <[email protected]> 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
 > >> [email protected] mailing list.
 > >> To unsubscribe:
 > >> mailto:[email protected]
 > >> For general help:
 > >> mailto:[email protected]?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 [email protected] mailing
 > >list.
 > >To unsubscribe: mailto:[email protected]
 > >For general help: mailto:[email protected]?subject=help
 > >ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
 >
 >
 >
 >
 >--
 >You receive this message as a subscriber of the [email protected] mailing
 >list.
 >To unsubscribe: mailto:[email protected]
 >For general help: mailto:[email protected]?subject=help
 >ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



------------=_1125715131-27247-255
Content-Type: text/plain; name="message-footer.txt"
Content-Disposition: inline; filename="message-footer.txt"
Content-Transfer-Encoding: 8bit


--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

------------=_1125715131-27247-255--