RoxenCMS 5.4Web Developer ManualXSLT/XPath Functions

   

rxml:cookie
rxml:get-permlink
rxml:iso-gmtime
rxml:iso-time
rxml:metadata
rxml:mktime
rxml:node-set
rxml:pike-expression
rxml:resolve-permlink
rxml:variable
boolean
ceiling
concat
contains
count
current
document
element-available
false
floor
format-number
function-available
generate-id
id
key
lang
last
local-name
name
namespace-uri
normalize-space
not
number
position
round
starts-with
string
string-length
substring
substring-after
substring-before
sum
system-property
translate
true
unparsed-entity-uri

rxml:metadata()

Arguments:    [string], [boolean], [boolean]
Returns: node-set

Returns meta-data for the current content file or a set of files. If no argument is given this function will return a node-set consisting of the following nodes:

<filename>...</filename> <path>...</path> <type>...</type> ...

All entities accessible from <emit dir>(SB) will appear as children to the <file> element.

When a string argument is passed to the function it is considered to be a path. If it's relative it's interpreted relative to the current content file. The last segment of the path may contain globbing characters * and ?. The resulting node-set will contain <file> elements as described above as well as <dir> elements:

<file>...</file> <file>...</file> <dir> <dirname>...</dirname> <path>...</path> <selected>...</selected> </dir> ...

The second optional argument controls whether invisible files should be included when a directory is examined. Normally files who are invisibile according to their External Visibility metadata are excluded from the result.

The third optional argument controls whether deleted files should be included when a directory is examined.

The <dir> elements will only contain <dirname>, <path> and <selected> elements.

The order of items is undefined, so use <xsl:sort> to get them alphabetically sorted:

<xsl:for-each select=" rxml:metadata('/subdir/')"> <xsl:sort select="filename | dirname"/> ... </xsl:for-each>

Note!

This function is Roxen-specific.