forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <cross...@apache.org>
Subject Re: generated doc and not finding DTD
Date Mon, 26 Sep 2005 23:32:54 GMT
Louis.Masters@log-net.com wrote:
> I returned from a conference and I'm running into this issue again.  It 
> seemed to be working for a bit, but now I get the same error message when 
> the serializer is "xml-document."
> 
> The system cannot locate the object specified. Error processing resource 
> 'http://10.10.10.16:8888/build/document-v13.dtd'. 

That does not sound like an error message from Forrest.

Are you still trying to look at the intermediate document
with a web browser? That is fine to debug the output,
but you must expect such failures.

As i said below this is not a problem for Forrest,
it will still work properly.

-David

> It looks like it is losing the path to the dtd - could it be because this 
> file is being generated?  My sitemap snippet is:
> 
>       <map:pipeline internal-only="false">
>       <map:match pattern="**/defaultbuilddir.xml">
>       <map:generate type="directory" src="d://builds">
>       <map:parameter name="depth" value="1"/>
>       </map:generate>
>       <map:transform 
> src="{project:resources.stylesheets}/builddir2document.xsl" />
>       <map:transform type="idgen"/>
>       <map:serialize type="xml-document"/>
>       </map:match>
>       </map:pipeline>
> 
> I tried different stylesheets and source, but it seems like it is the 
> serializer that is the issue.  If I serialize it as "xhml" it works fine, 
> but I think that is because the dtds are referenced externally from 
> w3c.org.
> 
> So, how do I get it to find the default dtds?
> 
> Thanks,
> Lou
> 
> 
> David Crossley <crossley@apache.org> wrote on 09/16/2005 10:11:45:
> 
> > Louis.Masters@log-net.com wrote:
> > > David:
> > > 
> > > You are right about my using the wrong serializer.  I switched it to 
> > > 'html' and it now works.  It looks horrible since it is not skinned 
> and 
> > > framed by Forrest, but I think I saw a posting on fixing this.  Thanks 
> for 
> > > pointing out my mistake.
> > 
> > No i did not mean to change the serialiser. I meant to
> > change the pattern match to make it produce the xml
> > that Forrest will theme, skinned as framed as you call it.
> > 
> > -David
> > 
> > > The match pattern (<map:match pattern="**/defaultbuilddir.html">) is

> fake 
> > > - I only use it to generate the directory listing.  I am trying to 
> emulate 
> > > an older Apache Web Server that let's users download files from a raw 
> > > directory listing.  Is doing this a problem?
> > > 
> > > Thanks again,
> > > Lou
> > > 
> > > 
> > > David Crossley <crossley@apache.org> wrote on 09/16/2005 09:46:40:
> > > 
> > > > Louis.Masters@log-net.com wrote:
> > > > > I am having a problem with generating a listing of files in a 
> > > directory. I 
> > > > > get the following error in my browser:
> > > > > 
> > > > > The system cannot locate the object specified. Error processing 
> > > resource 
> > > > > 'http://10.10.10.16:8888/build/document-v13.dtd'. 
> > > > > 
> > > > > The top of the generated output looks like:
> > > > > 
> > > > > <?xml version="1.0" encoding="ISO-8859-1"?>
> > > > > <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.3//EN"

> > > > > "document-v13.dtd">
> > > > > 
> > > > > 
> > > > > My sitemap entry looks like:
> > > > > 
> > > > >       <map:pipeline internal-only="false">
> > > > >       <map:match pattern="**/defaultbuilddir.html">
> > > > >       <map:generate type="directory" src="d://builds">
> > > > >       <map:parameter name="depth" value="1"/>
> > > > >       </map:generate>
> > > > >       <map:transform 
> > > > > src="{project:resources.stylesheets}/builddir2document.xsl" />
> > > > >       <map:transform type="idgen"/>
> > > > >       <map:serialize type="xml-document"/>
> > > > >       </map:match>
> > > > >       </map:pipeline>
> > > > > 
> > > > > It looks like it is not looking for the DTD in the webapp 
> directory.
> > > > > 
> > > > > Any thoughts?
> > > > 
> > > > That is not Forrest's problem. You would get the same issue
> > > > looking at any raw XML file with a web browser. Well it depends
> > > > on the browser actually - some don't try to resolve the DTD.
> > > > 
> > > > However, i think that you have something wrong with your sitemap.
> > > > That should be <map:match pattern="**/defaultbuilddir.xml">
> > > > .......................................................^^^
> > > > 
> > > > You are serializing to the internal "xml-document"
> > > > format which then gets the forrest theme applied.
> > > > 
> > > > http://forrest.apache.org/docs/project-sitemap.html
> > > > 
> > > > Does that help, or have i misunderstood?
> > > > 
> > > > -David

Mime
View raw message