<index> The index for the tutorial wiki. A link to the <ref id="first article" />. </index>
<article desc="first article"> The content of the first article. Link to the <ref id="second article" />. <cat id="articles" /> <cat id="othercategory" /> </article>The second article will contain the following content:
<article desc="second article"> The content of the second article. Link to the <ref id="first article" />. <cat id="articles" /> </article>
myWiki -- doc-files ---- crocodile.png -- article1.xml -- article2.xml -- index.xml
<article desc="first article"> The content of the first article. Link to the <ref id="second article" />. The image with a path: <img href="crocodile.png" width="20%" /> <cat id="articles" /> <cat id="othercategory" /> </article>
<images> <image id="ball" url="ball.jpg" /> </images>In our tutorial, we will have the following file structure:
myWiki -- doc-files ---- crocodile.png -- images ---- images.xml ---- ball.jpg -- article1.xml -- article2.xml -- index.xml
<article desc="first article"> The content of the first article. Link to the <ref id="second article" />. The image with a path: <img href="crocodile.png" /> The image with an id: <img id="ball" /> <cat id="articles" /> <cat id="othercategory" /> </article>We can also use the same image for the second article:
<article desc="second article"> The content of the second article. Link to the <ref id="first article" />. The image: <img id="ball" /> <cat id="articles" /> </article>Let's generate the wiki. Now the first article looks like that:
myWiki -- doc-files -- article1.xml -- article2.xml -- index.xmlWe can now add our "myXMLFile.xml" file in this new directory:
myWiki -- doc-files -- myXMLFile.xml -- article1.xml -- article2.xml -- index.xmlThe parser will not take into account directories named "doc-files" anywhere in the wiki structure[1]
<article desc="second article"> The content of the second article. Link to the <ref id="first article" />. The image: <img id="ball" /> The resource: <resource href="myXMLFile.xml" /> <cat id="articles" /> </article>The resource will be looked under the "doc-files" sub-directory[2]
docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.