Menu

#28 Not caching external DTD on multiple imports

open
nobody
None
5
2010-05-31
2010-05-31
elmimmo
No

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)" />
</xsl:template>

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.

Discussion

  • 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?

     
  • Andrew Welch

    Andrew Welch - 2010-08-03

    Hi,

    Yes, there were a few problems there... please download Kernow 1.7 from http://sourceforge.net/projects/kernowforsaxon/files/

    cheers
    andrew

     

Log in to post a comment.