martinema / xml-dir-listing

Automatically exported from code.google.com/p/xml-dir-listing
Apache License 2.0
0 stars 0 forks source link

DTD optional? #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

Should the DTD reference in the output be optional, or better explained ?

If you are offline (or forget to set http_proxy?) you get the following 
error:

BUILD FAILED
 .../jk2/build.xml:466:  javax.xml.transform.TransformerException: 
javax.xml.transform.TransformerException: 
com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: xml-dir-
listing.googlecode.com

ie. it tries to resolve the DTD over http & fails, and doesn’t bother to 
look for the copy in trunk/lib (or wherever the jar is)

I’m having to do this (after xml-dir-listing has run) :-

 <replace ..>
 <replacetoken>SYSTEM</replacetoken>
 <replacevalue>PUBLIC "-//BBC//XML Directory Listings 0.1//EN" </
replacevalue>
 </replace>

Then set the xmlcatalog to do a local lookup :-

  <xmlcatalog id="dir-listing-catalog">
   <dtd 
     publicId="-//BBC//XML Directory Listings 0.1//EN"
     location="trunk/lib/xml-dir-listing.dtd" />
  </xmlcatalog>

Then reference that in the style task :-

        <xslt ...>
            <xmlcatalog refid="dir-listing-catalog"/>
        </xslt>

Original issue reported on code.google.com by commuter...@gmail.com on 9 Oct 2007 at 10:05

GoogleCodeExporter commented 8 years ago
+1 on this issue. I'm using the xml-dir-listing ant task and then transforming 
the
output with the xslt task. Because the DOCTYPE declaration does not have a 
PUBLIC id,
I can't include it in an ant xmlcatalog (which only supports PUBLIC id). Result 
is, I
must be connected to internet to do the transformation.

(Otherwise, the task is great. I use it to generate sitemaps).

Original comment by ewan.cha...@gmail.com on 2 Oct 2008 at 8:27

GoogleCodeExporter commented 8 years ago
Same issue :-( otherwise great :-)

Original comment by mike.por...@gmail.com on 6 Nov 2008 at 1:52

GoogleCodeExporter commented 8 years ago
Taken DTD out of XML output, still available online if needed

Original comment by monsieur...@gmail.com on 29 Jan 2009 at 11:06