I am trying to generate a PDF from one tab. I am
using Apache Forrest 0.7. I have followed the instructions given at http://forrest.apache.org/docs_0_70/howto/howto-pdf-tab.html
. When I run the forrest command, I get the following
error message: “pdf-tab.html BROKEN:
ElemTemplateElement error: str:substring-before-last”. Does anyone have an idea where I am going wrong? Any help would be very much appreciated. Kind regards, Steve |
pdf-tab.xmap
Description: pdf-tab.xmap
sitemap.xmap
Description: sitemap.xmap
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2002-2004 The Apache Software Foundation or its licensors, as applicable.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!-- Forrest site.xml This file contains an outline of the site's information content. It is used to: - Generate the website menus (though these can be overridden - see docs) - Provide semantic, location-independent aliases for internal 'site:' URIs, eg <link href="site:changes"> links to changes.html (or ../changes.html if in subdir). - Provide aliases for external URLs in the external-refs section. Eg, <link href="ext:cocoon"> links to http://cocoon.apache.org/ See http://forrest.apache.org/docs/linking.html for more info --> <site label="MyProj" href="" xmlns="http://apache.org/forrest/linkmap/1.0" tab=""> <!-- Note: No matter what you configure here, Forrest will always try to load index.html when you request http://yourHost/. 'How can I use a start-up-page other than index.html?' in the FAQs has more information tells you how to change that. --> <about label="About"> <index label="Index" href="index.html" description="Welcome to MyProj"/> <whole_foosite href="pdf-tab.html" label="pdf-tab"/> </about> <samples label="Samples" href="samples/" tab="samples" wholesite="true"> <index href="index.html"/> <sample label="Apache doc v2.0" href="sample.html" description="A nonsense document using all possible elements in the current document v2.0"> <top href="#top"/> <section href="#section"/> </sample> <document-v13 label="Apache doc v1.3" href="document-v13.html" description="A nonsense document using all possible elements in the document v1.3"> <top href="#top"/> <section href="#section"/> </document-v13> <static label="Static content" href="static.html" description="Static raw un-processed content" /> <linking label="Linking" href="linking.html" description="Linking explained and demonstrated" /> <sample-html label="Embedded HTML" href="embedded_html.html" description="Test of Embedded HTML" /> <sample-ascii-art label="ascii-art page" href="ascii-art.html" description="Sample Ascii Art page" /> <sample-usemap label="usemap" href="usemap.html" description="Client-side imagemap" /> <sample-custom label="User Schemas" href="customSchema.html" description="Custom XML Schemas"/> <custom label="Custom File" href="custom.html" description="A custom XML file"/> <faq label="FAQ" href="faq.html" description="Frequently Asked Questions" /> <subdir label="Subdir" href="subdir/"> <index label="Index" href="index.html" description="Page generated from a sub-directory"/> </subdir> </samples> <plugins label="Plugins" href="pluginDocs/plugins_0_70/" tab="plugins"> <index label="Index" href="index.html" description="List of plugins available for Forrest"/> </plugins> <files> <hello_print href="hello.pdf" /> <test1 href="test1.html" /> </files> <!-- The href must be wholesite.html/pdf You can change the labels and node names <all label="All"> <whole_site_html label="Whole Site HTML" href="wholesite.html"/> <whole_site_pdf label="Whole Site PDF" href="wholesite.pdf"/> </all> --> <external-refs> <forrest href="http://forrest.apache.org/"> <linking href="docs/linking.html"/> <validation href="docs/validation.html"/> <webapp href="docs/your-project.html#webapp"/> <dtd-docs href="docs/dtd-docs.html"/> </forrest> <cocoon href="http://cocoon.apache.org/"/> <xml.apache.org href="http://xml.apache.org/"/> </external-refs> </site>