X-definition
If you have a collection with more X-definitions specify the name of root X-definition:
<xd:def xmlns:xd="http://www.xdef.org/xdef/4.2" root="html" name="Example"> <!-- Note the value of the attribute script below is "template" so following element a template model. --> <html xd:script="template" > <head> <title>Example of template model</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> </head> <body bgcolor="lightblue"> <h1><Font color="red">Today date:</Font></h1> <h2>$$$script: create now().toString("{L(en,US)}EEEE, d. MMMM yyyy GG, hh:mm a"); /* If the script starts with "$$$script" it is processed normally, otherwise all text values are generated as string constants. */ </h2> <h3>This is the example of template model in the construction mode.</h3> <i> This text is taken from the text value of the element <Input>: </i> <h1> $$$script: create from("/Input/text()"); </h1> </body> </html> </xd:def>
Input data
If necessary please specify the name of the model:
namespace:
<Input> Hello world! </Input>
You can edit
X-definition
or
Input
window