Hi there,

I have added a custom DTD, which seems to be working fine. I would like
all the files with the md-v1.0 DTD declared in the DOCTYPE to use a
custom XSL.

I have the following in my local sitemap.xmap:

<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0";>
  <map:components>
    <map:selectors default="parameter">
      <map:selector logger="sitemap.selector.parameter" name="parameter"
src="org.apache.cocoon.selection.ParameterSelector" />
    </map:selectors>
    <map:actions>
      <map:action logger="sitemap.action.sourcetype" name="sourcetype"
src="org.apache.forrest.sourcetype.SourceTypeAction">
          <sourcetype name="md-v1.0">
            <document-declaration public-id="-//MyDoc//DTD MyDoc
Document V1.0//EN" />
          </sourcetype>
      </map:action>
    </map:actions>
  </map:components>

  <map:pipelines>
    <map:pipeline>
        <map:match pattern="**.xml">
          <map:generate src="{properties:content.xdocs}{1}{2}.xml" />
          <map:act type="sourcetype"
src="{properties:content.xdocs}{1}{2}.xml">
          <map:select type="parameter">
              <map:parameter name="parameter-selector-test"
value="{sourcetype}" />
                <map:when test="md-v1.0">
                  <map:transform
src="{properties:resources.stylesheets}/mydoc-to-document.xsl" />
              </map:when>
          </map:select>
          </map:act>
          <map:serialize type="xml"/>
      </map:match>
    </map:pipeline>
  </map:pipelines>
</map:sitemap>


When I run Forrest, I get the following:

"linkmap.html  BROKEN: C:\Forrest0_8\apache-forrest-0.8\main\webapp\.
(Access is denied)"

Any help appreciated.

Thanks,

Steve

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________