RE: Localize help with doctype

"Christian Cryder" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Just wanted to followup on this email so everyone knows the solution we came
up with. DefaultDOMWriter has been tweaked, so that the document type
settings can be configured globally, via the obj. repository assembler:

    <!-- Set default DOM options -->
    <object class="org.enhydra.barracuda.core.util.dom.DefaultDOMWriter">
        <prop name="DEFAULT_OO_PUBLIC_ID">-//W3C//DTD HTML 4.01
Transitional//EN</prop>
        <prop
name="DEFAULT_OO_SYSTEM_ID">http://www.w3.org/TR/html4/loose.dtd</prop>
    </object>

Now, if you don't have this, everything will still continue to run as it
used to. In addition, even if you do use this approach, you can override
this "global" setting simply by having your event handlers override the
getDOMWriter() method to return your own DOM writer with the options set
however you want.

So all in all, I think it should be pretty flexible...

Christian
----------------------------------------------
Christian Cryder
Internet Architect, ATMReports.com
Project Chair, BarracudaMVC - http://barracudamvc.org
----------------------------------------------
"Coffee? I could quit anytime, just not today"


> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Shawn Wilson
> Sent: Monday, November 10, 2003 1:18 PM
> To: [email protected]
> Subject: [Barracuda] Localize help with doctype
>
>
> I'm running into a problem with a DOCTYPE in my html files not making it
> through to the final xmlc source. I'm using the localize Ant task which
> extends the XMLC task but for the life of me I cannot find any
> documentation on that thing (the xmlc taskdef) so I'm asking here.
>
> Basically, all my source HTML files look like this:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
>
> ...
>
> </html>
>
> Looking at the generated .java file from xmlc I don't see any reference
> to the doctype in there and it doesn't make it to the final rendered
> html from Barracuda either. Is there some argument to the localize task
> I'm missing? Here's how I call it:
>
>          <localize
>              markup="HTML"
>              tidy="true"
>              verbose="false"
>              force="${xmlc.force}"
>              srcdir="${src.dir}/${src.package.path}/xmlc"
>              packagedir="${src.package.path}/xmlc"
>              options="${xmlc_options.file}"
>              sourceout="${build.source.xmlc.dir}"
>              destdir="${build.classes.dir}"
>              includes="**/*.html"
>              excludes="**/old*/**"
>          />
>
> Any help would be appreciated.
>
> Thanks,
> -shawn
>
> _______________________________________________
> Barracuda mailing list
> [email protected]
> http://barracudamvc.org/lists/listinfo/barracuda
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.