xinclude
XML Technologies
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

xinclude

Used to process xinclude processing instructions

Module

urn:org:ten60:netkernel:ext:xml:ura

Definition

Format

<instr>
  <type>xinclude</type>
  <operand>foo.xml</operand>
  <target>bar.xml</target>
</instr>

Syntax

ElementRulesDescription
typeMandatory xinclude
operandMandatory required the resource to substitute xincludes
targetMandatory Fragment OKrequired the target resource

The xinclude accessor is used to substitute xinclude declarations in the operand document with the resource referenced by the xinclude. XInclude is a W3C standard for incorporating resources into an XML resource.

Xinclude uses the kernel to obtain resources. At present xinclude only supports XML resources. An optional xml:base attribute can be used to specifiy the URI form which relative URI's are to be resolved.

Here is an example document with xincludes

<aroot xmlns:xi="http://www.w3.org/2001/XInclude">
  <xi:include href="http://someserver/some/path/resource.xml">
    <xi:fallback>
      <xi:include href="localresource.xml" />
    </xi:fallback>
  </xi:include>
</aroot>

If the included reference cannot be found an optional fallback resource may be used.


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