locationToXPath
General Accessors
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

locationToXPath

Finds the XPath for a given row:column element location

Module

urn:org:ten60:netkernel:ext:sys

Definition

Format

<instr>
  <type>locationToXPath</type>
  <operand>var:result</operand>
  <operator>
    <locations>
      <location>
        <row>3</row>
        <column>15</column>
      </location>
    </locations>
  </operator>
  <target>this:response</target>
</instr>

Syntax

ElementRulesDescription
typeMandatory locationToXPath
operandMandatory the document to find xpaths in
operatorMandatory a document specifying row/column locations
targetOptional the target resource

The locationToXPath accessor determines the XPath for a given row and column location. Row:column vectors are frequently generated in SAX parsing operations such as schema validation. This utility makes the row column into a useful canonical XPath that can be used for subsequent processing.

The location is specified as follows:
row is the row containing the element.
column is the first column after the first > angle bracket of the element.

The result is an xpaths document containing canonical XPaths. If no match is found an empty xpath is returned.

Operator Syntax

The locationToXPath accessor a takes a set of location vectors provided in a <locations> document.

<locations>
  <location>
    <row>10</row>
    <column>50</column>
  </location> . . .
</locations>

Any number of locations may be specified. An APath entry will be returned for each.

Example

TBD


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