RoxenCMS 17Web Developer ManualXSLT Extensions

   

<rxml:copy-attributes>
<rxml:helptext>
<rxml:parse>
<rxml:variable-dependency>

<rxml:variable-dependency/>

Provided by module: CMS: XSLTransform

Top-level element which declares that the output of this stylesheet depends on the value of a given variable in the form scope.

Form variables are accessed using rxml:variable(), and when <rxml:variable-dependency> elements are added to the stylesheet the Roxen SiteBuilder caching system can use this information to improve performance.

It's important that either all variables are left undeclared (which makes the stylesheet compatible with earlier Roxen SiteBuilder versions) or that all dependent variables are declared. Mixing these two strategies can produce unexpected results. It's not necessary to declare dependencies for variables used in imported stylesheets as long as they declare their own variables correctly.

Note!

It's important to declare dependencies in each stylesheet that calls rxml:variable(). If not done, the stylesheet will be used in backwards compatibility mode and ruin the possibility to use the more cache-friendly strategy for the entire transform.

Note!

This element is a Roxen-specific extension.


Attributes

name="string"

Make the stylesheet dependent on the form variable with the given name.