forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurice Lanselle <>
Subject Sitemap dot xmap editing
Date Mon, 06 Jun 2005 12:45:05 GMT
I am trying to integrate another content type, one based on a published 
document schema from a standards association ( However, it 
is not being transformed to xdoc;  I think that I am having trouble with 
the "sitemap.xmap" interception and would appreciate clues as to how to 
get it right. I have simply copied the "download" example and changed 
"download" to "resume" :

>   <map:pipeline>
>    <map:match pattern="**Resume.xml">
>     <map:generate src="{project:content.xdocs}{1}Resume.xml" />
>     <map:transform 
> src="{project:resources.stylesheets}/resume2document.xsl" />
>     <map:serialize type="xml"/>
>    </map:match>
>   </map:pipeline>

However, when I try to use my test stylesheet as "resume2document", 
"ResumeExample2.html" has no content. When I pull "ResumeExample2.xml" 
in my browser, I get the raw untransformed xml file.  So it looks like 
my stylesheet is not being applied, because my document is not matching 
the pattern. How should I fix my <map:pipeline> match in sitemap.xml?  
Is the match pattern not applied to the document type (see "B." below)?  
Is it because I have two <map:pipeline> groups in my sitemap, one for 
"download" followed by one for "Resume"?


P.S.  I have checked :

A.  I have successfully gone through the "download" example.  Forrest 
finds my stylesheets, applies sitemap.xmap.

B.  Sample document validation.  Running "Forrest -v validate" succeeds, 
i.e. Forrest appears to resolve and utilise the appropriate xsd. Forrest 
also validates the sitemap.xmap (after noting the absence of several 
subsidiary xmap files to set property version-specific-sitemap).
The sample document "ResumeExample2.xml"  I downloaded from a standards 
organization.  The document validates to their schema :    

<?xml version="1.0" encoding="UTF-8"?>
<Resume xml:lang="EN" xmlns="" 

C.  My stylesheet: the trivial 
"./resources/stylesheets/resume2document.xsl" (listed below) works for 

<!-- a trivial transform doc-root to xdoc  stylesheet, should work for 
any schema or DTD  -->
<?xml version="1.0" encoding="utf-8"?>

  <xsl:template match="/">
    <title>Downloading Binaries</title>
    <section id="racine">
      <title>A Section Title could be added here </title>
    <p> The section text could then follow...</p>


View raw message