Pages

Monday, February 14, 2011

Dynament Reference (Tips)

Grab file name from url string 

<rde-dm:attribute mode="write"
                attribute="request:tmpvar"
                value="/cps/rde/project/xsl/hs.xsl/-/html_files/index.htm"
                tag="notag" />
<rde-dm:attribute mode="read"
                attribute="request:tmpvar"
                tag="notag" inline-function="split('/', -1)" />

This will take /cps/rde/project/xsl/hs.xsl/-/html_files/index.htm and rip out the index.htm.