Home
Categories
Dictionary
Download
Project Details
Changes Log
What Links Here
How To
Syntax
Wiki usage
Tutorials
FAQ
License

resource element



This article explains the how to use the "resource" element.

Overview

Main Article: Resource files

The "resource" tag allows to link to a resource File internally defined in the wiki. Note that the optional "package" attribute allows to reference a resource in another package.

There are two ways to point to a resource file in an article:
  • Directly pointing to a resource file in a "doc-files" directory which is under the directory in which the article is present. Such as <resource href="myResource.xml">Example</resource>
  • Referencing a resource file (which can be in this case anywhere in the wiki) by its ID. Such as <resource id="resource1">Example</resource>

  • If the resource element uses a href and has no text content, the href will be used for the text
  • If the resource element uses an id and has no text content, the name of the file associated with the resource definition will be used

Examples

Examples using an id

  <resource id="resource1">Example resource</resource>
Result: Example resource

Examples using a href

  <resource href="resourceExample2.xml" >Second example</resource>
Result: Second example
  <resource href="resourceExample2.xml" />
Result: resourceExample2.xml

See also


Categories: Syntax

docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.

Project Web Hosted by SourceForge.net Copyright 1999-2010 - Geeknet, Inc., All Rights Reserved About - Legal - Help