Re: [xmlc] XHTML output?
Jacob Kjome <[email protected]> Fri, 02 Sep 2005 19:07:59 -0500
| Newsgroups | gmane.comp.java.enhydra.xmlc |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format...
------------=_1125706126-27247-237
Content-Type: text/plain; charset="us-ascii"; format=flowed
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(DocumentClass
>.java:329)
> at
>org.enhydra.xml.xmlc.compiler.Parse.parse(Parse.java:228)
> at
>org.enhydra.xml.xmlc.deferredparsing.DocumentLoaderImpl.parseDocument(Docume
>ntLoaderImpl.java:518)
> at
>org.enhydra.xml.xmlc.deferredparsing.DocumentLoaderImpl.getCacheEntry(Docume
>ntLoaderImpl.java:168)
> at
>org.enhydra.xml.xmlc.deferredparsing.DocumentLoaderImpl.getDocument(Document
>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/modules/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-docclass-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
------------=_1125706126-27247-237
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
------------=_1125706126-27247-237--