I think you were right! I found the problem...
... the DTD get lost, because I had some problems at validation-time... 

I printed the code with SVGGraphics2D.stream method, can you tell me why
I get the standard DTD, when validation fails? 

THX

-----Ursprüngliche Nachricht-----
Von: Thomas DeWeese [mailto:[EMAIL PROTECTED] 
Gesendet: Samstag, 20. März 2004 02:37
An: Batik Users
Betreff: Re: AW: **SPAM** Re: Local DTD for SVGDocument

Steffen Otto wrote:


> /////////////////////////////////////////
> while printing the code on the console, I get this (false) DTD
> settings...

    How do you print the code?

    It looks to me like the code should preserve your
DOCTYPE decl.

> now I want to transform the SVGDocument via XSLT...
> 
> at this time a get an exception (java.net.UnknownHostException:
> www.w3.org), because the upper DTD

     Ahh, the DTD reading problem is a problem with the XSLT
engine not Batik.

> ('http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd') need to
> vailidate...
> 
> I don’t know to tell batik to take the DTD local... did anybody know
the
> solution? (please give me a code example...) 

     Not off the top of my head, I'm curious how you are
printing the Document.

> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Thomas DeWeese [mailto:[EMAIL PROTECTED] 
> Gesendet: Donnerstag, 18. März 2004 14:39
> An: Batik Users
> Betreff: **SPAM** Re: Local DTD for SVGDocument
> 
> [EMAIL PROTECTED] wrote:
> 
> 
>>When Batik generates the SVGDocument, it sets the DTD like this
>>"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"; But I need
> 
> to set the DTD
> 
>>local, because my Batik runs in a closed enviroment without any
> 
> internet
> 
>>connection. I think I need to use a EntityResolver, but I don´t know
> 
> to handle this.
> 
>>Has anybody a code example to solve my problem?  
> 
> 
> Hi Sotto,
> 
>     Batik already includes an EntityResolver that maps well known
> DTD decls to a local DTD.  So something must be broken in how
> you are reading the files, perhaps you aren't using the Batik
> classes to read the document, or perhaps the local copies of the
> DTD got lost?
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to