You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Klaus Kopruch <kl...@materna.de> on 2010/03/19 12:18:33 UTC

Resolving DTDs without an internet connection

Hello *

I want to use doctype

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

in my tml files and have the problem in this case, that T5 cannot render the
page because it cannot resolve the doctype. With doctype

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

I've no problem because the DTD is in T5 jar.

My question ist, how can I let T5 load
http://www.wapforum.org/DTD/xhtml-mobile10.dtd from a local location, i.e.
file system/jar/war?

Does anybody has an idea?

Thanks,
Klaus

-- 
View this message in context: http://old.nabble.com/Resolving-DTDs-without-an-internet-connection-tp27950940p27950940.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Resolving DTDs without an internet connection

Posted by Klaus Kopruch <kl...@materna.de>.
Thanks Christophe

that's a very good hint, I'll try it soon.

Thanks again,
Klaus


Christophe Cordenier wrote:
> 
> Hi
> 
> Contribute your DTD to the TemplateParserService :
> 
> See this extract of core code :
> 
> public static void contributeTemplateParser(MappedConfiguration<String,
> URL>
> config)
>     {
>         // Any class inside the internal module would do. Or we could move
> all these
>         // files to o.a.t.services.
> 
>         Class c = UpdateListenerHubImpl.class;
> 
>         config.add("-//W3C//DTD XHTML 1.0 Strict//EN",
> c.getResource("xhtml1-strict.dtd"));
> ...
> 
> Regards,
> Christophe Cordenier.
> 

-- 
View this message in context: http://old.nabble.com/Resolving-DTDs-without-an-internet-connection-tp27950940p28001431.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Resolving DTDs without an internet connection

Posted by Christophe Cordenier <ch...@gmail.com>.
Hi

Contribute your DTD to the TemplateParserService :

See this extract of core code :

public static void contributeTemplateParser(MappedConfiguration<String, URL>
config)
    {
        // Any class inside the internal module would do. Or we could move
all these
        // files to o.a.t.services.

        Class c = UpdateListenerHubImpl.class;

        config.add("-//W3C//DTD XHTML 1.0 Strict//EN",
c.getResource("xhtml1-strict.dtd"));
...

Regards,
Christophe Cordenier.

2010/3/19 Klaus Kopruch <kl...@materna.de>

>
> Hello *
>
> I want to use doctype
>
> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
> "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
>
> in my tml files and have the problem in this case, that T5 cannot render
> the
> page because it cannot resolve the doctype. With doctype
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>
> I've no problem because the DTD is in T5 jar.
>
> My question ist, how can I let T5 load
> http://www.wapforum.org/DTD/xhtml-mobile10.dtd from a local location, i.e.
> file system/jar/war?
>
> Does anybody has an idea?
>
> Thanks,
> Klaus
>
> --
> View this message in context:
> http://old.nabble.com/Resolving-DTDs-without-an-internet-connection-tp27950940p27950940.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Regards,
Christophe Cordenier.

Developer of wooki @wookicentral.com