BIS Lightweight Application Development Engine

components.static.markup tags

resources - As mentioned above, you can pull data from resources.xml directly on to your page as well as using it to feed page*.xsl by using the resources tag:

<resource path="a/b" res="tag1/tag2"/>
The path attriubute specifies what class to look in, and the res attribute lists the tag to get. The XSL spec does not provide a portable mechanism for converting strings to XPath statements, so although tag1/tag2 looks like an XPath statement, it is much more limited. Only a basic tagname/ tagname/tagname hierarchy is supported. Also, the resouces tag calls apply-templates on the xml inside the tag you tell it to get, so the data in resouces.xml is free to contain blade tags.

import - the import tag allows you pull in another XML file. Unlike the resource tag, it does not allow you to specify what part of the file you want to import - the whole file is brought in with xsl templates applied.

<import href="bottomnavbar.xml"/>

img - to facilitate sliding files around, you can place the text '$br/' inside the src attribute of your img tags. This is translated into the location of the blade directory when the page is converted to HTML. When you move your page to a new directory, the URLs of any images residing inside blade are automatically updated.

<img src="$br/common/images/1px.gif"/>
If you do not specify a root directory using the blade tag, the $br/ is ignored, including the trailing backslash.

a - when making static screenshots, you may find yourself needing to put anchor tags all over the place with nowhere to link to. Anchor tags without an href attribute are automatically given href="javascript:void(0)" to prevent the browser from acting funny when you click on these links.

date - The date tag displays the date on the screen, so that mockup applications can always look "real-time". The roll attribute specifies how much to slide the date; roll="-1" is yesterday, roll="+1" is tomorrow. Although unrelated to normal blade themes, the date tag also has a theme attribute with possible values of American, Europen, AmericanLong and EuropeanLog. American is the default.