Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 2991162cc7
Fetching contributors…

Cannot retrieve contributors at this time

318 lines (199 sloc) 5.946 kb

library module: http://www.xquerrail-framework.com/engine

Performs core engine for transformation and base implementation for different format engines ~

Table of Contents

Variables

$engine-transformer

$engine-transformer as  xdmp:function?

$visitor

$visitor as 

$_child-engine-tags

$_child-engine-tags as 

$_helpers

$_helpers as 

$_for_vars

$_for_vars as 

The for iterator requires a global stack

Functions

set-engine-transformer#1

set-engine-transformer($func as xdmp:function
)

To allow your engine to route transform calls from base You must register your engines transformer function in order for the base engine to route any functions you will handle ~

Params

  • func as xdmp:function

register-tags#1

register-tags($tagnames as xs:QName*
)

Register any custom tags you will be overriding from custom engine ~

Params

  • tagnames as xs:QName*

tag-is-registered#1

tag-is-registered(
  $tag as xs:string
)

Check to see if a tag has been registered with the engine ~

Params

  • tag as xs:string

consume#1

consume($node
)

Marks that a node has been visited during transformation When building custom tag that requires a closing tag ensure that you consume the results you process or you will find duplicate or spurious output results ~

Params

  • node as

visit#1

visit($node
)

Params

  • node as

visited#1

visited($node
)

Returns boolean value of whether a node has been visited. ~

Params

  • node as

transform-if#1

transform-if($node as node()
)

Transforms an if tag for processing ~

Params

  • node as node()

process-for-this#2

process-for-this(
   $this-tag as processing-instruction("this"),
   $this
)

The for tag must handle its one process and return the context to the user ~

Params

  • this-tag as processing-instruction("this")

  • this as

process-for-context#2

process-for-context($nodes,$context
)

The for tag must handle its one process and return the context to the user ~

Params

  • nodes as

  • context as

transform-for#1

transform-for(
   $for-tag as processing-instruction("for")
)

Params

  • for-tag as processing-instruction("for")

transform-has_slot#1

transform-has_slot($node as node()
)

Params

  • node as node()

transform-slot#1

transform-slot($node as node()
)

Params

  • node as node()

template-uri#1

template-uri($name
)

Params

  • name as

view-exists#1

view-exists($view-uri as xs:string
) as  xs:boolean

Params

  • view-uri as xs:string

Returns

  • xs:boolean

view-uri#2

view-uri($controller,$action
)

Params

  • controller as

  • action as

render-template#1

render-template($response
)

Params

  • response as

render-partial#1

render-partial($response
)

Partial rendering intercepts a call and routes only the view, even if a template is defined. This is to support ajax type calls for rendering views in a frame or container ~

Params

  • response as

render-view#0

render-view(
)

transform-template#1

transform-template($node
)

Params

  • node as

transform-view#1

transform-view($node
)

Params

  • node as

transform-dynamic#1

transform-dynamic($node as node()
)

Params

  • node as node()

transform#1

transform($node as item()
)

Params

  • node as item()

Generated by xquerydoc

Jump to Line
Something went wrong with that request. Please try again.