plainTextToXHTML
Converts plain text to XHTML, parses URI to links
Index > Books > Declarative Development Guide > Reference Library > Accessor Listing > plainTextToXHTML

Rate this page:
Really useful
Satisfactory
Not helpful
Confusing
Incorrect
Unsure
Extra comments:


Module

urn:org:ten60:netkernel:ext:xhtml

Definition

Active URI Base

active:plainTextToXHTML

Format

<instr>
  <type>plainTextToXHTML</type>
  <operand>document.xml#xpointer(/path/to/text)</operand>
  <target>this:response</target>
</instr>

Syntax

ArgumentRulesDescription
typeMandatory plainTextToXHTML
operandMandatory XML document reference with XPointer fragment identifier to text
targetMandatory target resource

The plainTextToXHTML accessor converts plain text to formatted XHTML. The text is supplied in an XML element which is referenced using an XPointer reference.

Whitespace linebreaks are detected and converted to <br/> breaks. Multiple-repeated linebreaks are ignored. URI references (http:, mailto:) within the plain text are parsed and converted to links <a href="ref">ref</a>.

The result is a <div> block fragment containing the XHTML formatted text.

© 2003-2005, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.