SAPID Encyclopedia  
Sapid   SAPID-Club (English, Russian, Portuguese forums) SAPID-Workshop (Project and developer charts) SAPID-Wiki (SAPID Live Encyclopedia) SAPID-Farm (The best place for a SAPID-based project)
Download
eXTReMe Tracker
HomeDocumentationXML Sapiens Hand-bookDynamic Data Container (DDC)

Dynamic Data Container (DDC)

Dynamic data containers (see Dynamic Data Container, http://xmlsapiens.org/spec/bodyofthesapi/datacontainers/dynamiccontainer/) refer to the fragments of the document displayed on the website. The content of these containers is based on a functional algorithm. These containers contain the description of functional algorithms.

For example:

<?xml version="1.0"?>
<sapi version="1.0" xmlns:sapi="http://www.xmlsapiens.org/spec/sapi.dtd">
<sapi:ddc name="menu" title="ddc" ns="site1" category="navigation">
<sapi:author>
<sapi:name>Max Baryshnikov</sapi:name>
<sapi:email>mb@rg.by</sapi:email>
<sapi:url>www.redgraphic.com</sapi:url>
</sapi:author>
<sapi:comments>Vertical menu with subitems. CMS SAPID.</sapi:comments>
<sapi:choose>
<sapi:when exp="1">
<sapi:for-each select="get_tree()" name="enum">
<sapi:choose>
<sapi:when>
<sapi:exp>eq(this.this.currentpage.value,1)</sapi:exp>
<sapi:code>

<sapi:apply name="this.this.spacer.value" /> › <a class="active" href="../../../../"><sapi:apply name="this.this.TITLE.value" /></a><br />

</sapi:code>
</sapi:when>
<sapi:when>
<sapi:exp>neq(this.this.currentpage.value,1)</sapi:exp>
<sapi:code>

<sapi:apply name="this.this.spacer.value" />› <a class="inactive" href="../../../../"><sapi:apply name="this.this.TITLE.value" /></a><br />

</sapi:code>
</sapi:when>
</sapi:choose>
</sapi:for-each>
</sapi:when>
</sapi:choose>
</sapi:ddc>
</sapi> 



User Contributed Notes

January 01, 1970 00:00
Add a note

Your email address/name
Your notes
Red Graphic Systems Sponsored