#28 Not caching external DTD on multiple imports


Kernow 1.6.1b3 does not cache the external DTD referenced in a DOCTYPE for one single pass, even if the XSL imports several files referencing that DTD.

Each imported file has the following doctype

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

The XSL imports several files using the following code:

<xsl:template name="OnImageFileProccess">
<xsl:param name="filename"/>
<xsl:apply-templates select="document($filename)" />

For example, if one single pass imports 70 external files, each one with the same DOCTYPE, Kernow will still try to download the DOCTYPE 70 times with no caching.


  • Andrew Welch

    Andrew Welch - 2010-05-31

    If you download the DTD and place it in the cache folder (or point to its containing folder in the options) then it should pick it up from there.

  • elmimmo

    elmimmo - 2010-05-31

    No, it does not.

    Local cache is set in options are set to /Users/myUserName/Library/Caches/Java/

    I manually downloaded http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd and saved it as /Users/myUserName/Library/Caches/Java/svg11.dtd

  • Nobody/Anonymous

    Hi, any update on whether this is indeed a bug, or if I may be missing anything?


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks