INTRODUCTION <title xml:lang="nl-BE"/> <title xml:lang="fr-BE"/> <textItems> <TextItem> <description xml:lang="en-GB"/> <description xml:lang="nl-NL"/> <description xml:lang="nl-BE"/> <description xml:lang="fr-BE"/> </TextItem> </textItems> </Chapter> <Chapter xml:id="technical"> <title xml:lang="en-GB">TECHNICAL SPECIFICATIONS <title xml:lang="nl-BE"/> <title xml:lang="fr-BE"/> <textItems> <TextItem> <description xml:lang="en-GB"/> <description xml:lang="nl-NL"/> <description xml:lang="nl-BE"/> <description xml:lang="fr-BE"/> </TextItem> </textItems> </Chapter> <Chapter xml:id="safety"> <title xml:lang="en-GB">SAFETY <title xml:lang="nl-BE"/> <title xml:lang="fr-BE"/> <textItems> <TextItem> <description xml:lang="en-GB"/> <description xml:lang="nl-NL"/> <description xml:lang="nl-BE"/> <description xml:lang="fr-BE"/> </TextItem> </textItems> </Chapter> </chapters> </General> </xforms:instance> <xforms:instance id="languages"> <languages xmlns=""> <language code="en-GB">English</language> <language code="nl-NL">Dutch</language> <language code="nl-BE">Flemish</language> <language code="fr-BE">French</language> </languages> </xforms:instance> <xforms:instance id="chapter-selection"> <chapter xmlns="">introduction</chapter> </xforms:instance> <xforms:instance id="language-selection"> <language xmlns="">en-GB</language> </xforms:instance> <xforms:bind nodeset="instance('chapter-selection')" id="selected-chapter"/> <xforms:bind nodeset="//Chapter" id="chapter-set"/> <xforms:bind nodeset="//Chapter[@xml:id=instance('chapter-selection')/text()]" id="chapter"/> <xforms:bind nodeset="//Chapter[@xml:id=instance('chapter-selection')/text()]/textItems/TextItem" id="textitems"/> <xforms:bind nodeset="instance('language-selection')" id="selected-language"/> <xforms:bind nodeset="instance('languages')//language" id="language-set"/> </xforms:model> </head> <body> <blockquote> <xforms:group> <xforms:select1 bind="selected-chapter"> <xforms:action ev:event="xforms-value-changed"> <xforms:rebuild/> </xforms:action> <xforms:itemset bind="chapter-set"> <xforms:label ref="title[@xml:lang='en-GB']"/> <xforms:value ref="@xml:id"/> </xforms:itemset> </xforms:select1> <xforms:select1 bind="selected-language"> <xforms:action ev:event="xforms-value-changed"> <xforms:rebuild/> </xforms:action> <xforms:itemset bind="language-set"> <xforms:label ref="text()"/> <xforms:value ref="@code"/> </xforms:itemset> </xforms:select1> </xforms:group> <xforms:group bind="chapter"> <xforms:input ref="title[@xml:lang=instance('language-selection')/text()]"> <xforms:label class="title">Title</xforms:label> </xforms:input> <br/><br/> <xforms:trigger> <xforms:label>Insert</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:insert bind="textitems" at="index('repeat-textitems')" position="after"/> </xforms:action> </xforms:trigger> <xforms:trigger> <xforms:label>Delete</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:delete bind="textitems" at="index('repeat-textitems')"/> </xforms:action> </xforms:trigger> <br/> <xforms:repeat bind="textitems" id="repeat-textitems"> <xforms:textarea ref="description[@xml:lang='en-GB']"/> <xforms:textarea ref="description[@xml:lang=instance('language-selection')/text()]"/> <br/> </xforms:repeat> </xforms:group> </blockquote> </body> </html>