topical media & game development
professional-xml-23-syntax-grouping.xml / xml
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ex="someURI">
<head>
<title>Grouping</title>
<xf:model>
<xf:instance>
<ex:contact>
<ex:firstName>Foo</ex:firstName>
<ex:lastName>deBar</ex:lastName>
<ex:title>Developer</ex:title>
</ex:contact>
</xf:instance>
</xf:model>
</head>
<body>
<p>
<xf:input ref="ex:firstName">
<xf:label>First Name: </xf:label>
</xf:input>
<xf:input ref="ex:lastName">
<xf:label>Last Name: </xf:label>
</xf:input>
<xf:input ref="ex:title">
<xf:label>Title: </xf:label>
</xf:input>
<br/>
<xf:group>
<xf:label>Name: </xf:label>
<xf:input ref="ex:firstName">
<xf:label>First: </xf:label>
</xf:input>
<xf:input ref="ex:lastName">
<xf:label>Last: </xf:label>
</xf:input>
</xf:group>
<xf:input ref="ex:title">
<xf:label>Title: </xf:label>
</xf:input>
</p>
</body>
</html>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.