This wiki is locked. Future workgroup activity and specification development must take place at our new wiki. For more information, see this blog post about the new governance model and this post about changes to the website.

Introduction

This page experiments with TWiki support for inlining content into wiki pages. This capability is useful for adding file listing and generated tables.

The main tool for inlining content is the INCLUDE command.

Test1 - INCLUDE Plain Text

INCLUDE a plain text attachment named sample.txt

  • sample.txt: sample plain text file to test inlining

BEGIN INCLUDE This is a sample plain text file. This is line 2. End of file.

END INCLUDE

Note that the text content of the sample file flowed. Next try the verbatim style.

Test 2 - INCLUDE Plain Text in Verbatim Style

BEGIN INCLUDE

%INCLUDE{"%ATTACHURL%/sample.txt"}%

END INCLUDE

Note that the Verbatim style suppressed the execution of the INCLUDE command.

Test 3 - INCLUDE Plain Text - Raw Option

BEGIN INCLUDE

This is a sample plain text file. This is line 2. End of file.

END INCLUDE

Test 4 - INCLUDE Plain Text - Literal Option

BEGIN INCLUDE

This is a sample plain text file. This is line 2. End of file.

END INCLUDE

Test 5 - INCLUDE RDF File

INCLUDE a RDF attachment named sample.rdf

BEGIN INCLUDE

EMS 1.0 Service Prototype

END INCLUDE

BEGIN INCLUDE raw on

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:oslc="http://open-services.net/ns/core#" xmlns:xhtml="http://www.w3.org/1999/xhtml">

EMS 1.0 Service Prototype

END INCLUDE

BEGIN INCLUDE literal on EMS 1.0 Service Prototype

END INCLUDE

BEGIN INCLUDE both on EMS 1.0 Service Prototype

END INCLUDE

Topic attachments
I Attachment Action Size Date Who Comment
elserdf sample.rdf manage 0.4 K 16 Nov 2010 - 21:54 ArthurRyman sample rdf text file
txttxt sample.rdf.txt manage 0.4 K 16 Nov 2010 - 22:00 ArthurRyman sample RDF text file with .txt extension
txttxt sample.txt manage 0.1 K 16 Nov 2010 - 21:36 ArthurRyman sample plain text file to test inlining
Topic revision: r1 - 16 Nov 2010 - 22:04:24 - ArthurRyman
 
This site is powered by the TWiki collaboration platform Copyright � by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Contributions are governed by our Terms of Use
Ideas, requests, problems regarding this site? Send feedback