plainTextToXHTML
Converts plain text to XHTML, parses URI to links
Release Notes
attachGoldenThread
cast
copy
cutGoldenThread
cwu
delete
dpml
dump
entrypoint
exists
expire
fls
guid
hotRestart
HTTPCookie
HTTPRedirect
isUnix
locationToXPath
lock/unlock
log
loglevel
luceneIndex
luceneSearch
mapper
mapper-export
md5
mls
netkernel:*
new
Orchextra
org.ten60.util.aspell
org.ten60.util.image.SVG2PNG
org.ten60.util.image.Text2PNG
org.ten60.util.image.xchart
plainTextToXHTML
regex
relativizeURI
requestWithArgs
resolveURI
serialize
sleep
sqlBatch
sqlBooleanQuery
SQLEncodeElement
SQLEscapeXML
sqlQuery
sqlUpdate
stm
stopWatch
StringToCanonicalString
throw
toRelaxNG
trace
validateDTD
validateRNG
validateSchematron
validateXSD
xacml
xform
XHREFlinker
XHTMLredirect
XHTMLTidy
xinclude
xmltidy
xpatheval
xpur
xquery
xrl
xsign
xslfo-fop
xslfo-fop
xslt
xverify
License
Change History
NetKernel History
Acknowledgements

plainTextToXHTML

Convert plain text to XHTML

Module

urn:org:ten60:netkernel:ext:xhtml

Definition

Format

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

Syntax

ElementRulesDescription
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.


1060® NetKernelTM Documentation
(C) 2003-2004 1060 Research Limited

Send Feedback

© 2003,2004, 1060® Research Limited
1060 registered trademark, NetKernel trademark of 1060 Research Limited