Hi there,
Here is an email from Erik regarding doctype support in OXF.. Thought I would
forward it here for the public record..
Damon.
----------
Hi Damon,
Omar forwarded your message to me. Your email raises two interesting
questions.
First, as you noted, using public external entities (such as DTDs)
within your organization is not a very good idea for document
portability. It is certainly better to reference entities though their
public URL
(e.g. http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd). The syntax
to specify a proxy server changed in Java 1.3. The new properties are:
http.proxyHost (default: <none>)
http.proxyPort (default: 80 if http.proxyHost specified)
http.nonProxyHosts (default: <none>
Other interesting properties related to the networking API are
documented here:
http://java.sun.com/j2se/1.4.1/docs/guide/net/properties.html
Second, OXF does not use a validating parser. This means that the
external DTDs are loaded, but are not used for validation. The next
release of OXF will include support for customization of the XML
parser, such as selecting the validation method and disabling the
loading of external DTDs. Please let us know if you have a strong
requirement for these features sooner and we can provide you with a
patch before the release.
Regards,
-Erik
> -------- Original Message --------
> Subject: OXF doctype lookups..
> Date: Wed, 2 Apr 2003 15:42:06 +0100
> From: [EMAIL PROTECTED]
> To: Omar Tazi <[EMAIL PROTECTED]>
>
>
>
>
> Hi Omar,
> Having a few little problems with doctype headers in OXF.
>
> <?xml version="1.0"?>
> <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline">
> <p:param type="output" name="data"/>
> <p:processor uri="oxf/processor/identity" >
> <p:input name="data" href="index.html"/>
> <p:output name="data" ref="data"/>
> </p:processor>
> </p:config>
>
> For index.html..
>
> This works fine but I don't want to use this format..
>
> <?xml version="1.0" encoding="UTF-8"?>
> > "http://www.amnesty.org:8000/schemas/xhtml/xhtml1-strict.dtd"> > > > > > This
> > doesn't work but perhaps should? > > > > "/schemas/xhtml/xhtml1-strict.dtd"> > > >
> > And this presumably needs a proxy.. > > > >
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > > I have tried setting
> > the CATALINA_OPTS but no go.. > > CATALINA_OPTS = -DproxySet=true
> > -DproxyHost=dolphin -DproxyPort=80 >
> > -Dhttp.nonProxyHosts="localhost|*.amnesty.org" > > > I also noticed that OXF
> > doesn't enforce a doctype validation even when > it can find it.. OXF will error
> > out on a poorly formed index.html but > will not notice if index.html doesn't
> > validate against the supplied DTD? > > > Damon.