You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "Ross Gardler (JIRA)" <ji...@apache.org> on 2005/08/17 22:41:54 UTC

[jira] Closed: (FOR-637) Inserting an html document into a project

     [ http://issues.apache.org/jira/browse/FOR-637?page=all ]
     
Ross Gardler closed FOR-637:
----------------------------

    Resolution: Invalid
     Assign To: Ross Gardler

Please use the user mailing list to discuss how to use Forrest. The issue tracker is for reporting bugs and requesting new features.

Just this once though I'll answer your question here.

---

Forrest supports <xi:include ...> so all you need to do is include the content you want in the relevant location.

For example: <xi:include href="cocoon://myIncludedFile.xml"/>

Even though your source file is HTML you should still request the xml version of the file, this will force Forrest to convert the file to xdoc format before including it within yuor XDoc source.

Don't forget to add the namespace to your document:

xmlns:xi="http://www.w3.org/2001/XInclude"


If you need any more assistance please use the user mailing list

> Inserting an html document into a project
> -----------------------------------------
>
>          Key: FOR-637
>          URL: http://issues.apache.org/jira/browse/FOR-637
>      Project: Forrest
>         Type: Test
>   Components: XML grammars & validation
>     Versions: 0.7
>  Environment: Windows XP Professional
>     Reporter: William Buker
>     Assignee: Ross Gardler
>     Priority: Minor

>
> I have this code below. Right below the code that says Admin Documentation I want to insert an html documement that will open on the webpage for users to follow, by pushing the 'Admin Documentation' button. The file is called Users_doc.html and is found in the same directory where the code below is found. 
> <?xml version="1.0"?>
> <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.2//EN" "http://apache.org/forrest/dtd/document-v20.dtd">
> <document> 
> <header> 
> <title>Administrative Documentation</title> 
> <authors><person name="Jeremy Wilson" email="jeremy.wilson@esrginc.com"/> 
> </authors> 
> <notice>Initial documentation</notice> 
> </header> 
> <section>
> <title>Admin Documentation</title>
> <p> Push the blue "Admin Documentation" bar above for user information on the Adminstration Tab</p>
> </section>
> <footer> 
> <legal>© 2004 ESRG LLC.</legal> 
> </footer>
> </document>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira