Advertisement
Advertisement
| 06.06.2008 at 01:42AM PDT, ID: 23463016 | Points: 250 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: |
XML:
<FIELD type="TTextBox" label="Company Name:">
<PROPERTIES>
<PROPERTY name="ID">CompanyName</PROPERTY>
<PROPERTY name="readOnly">true</PROPERTY>
</PROPERTIES>
</FIELD>
XSL:
<xsl:for-each select="./PROPERTIES/PROPERTY">
<xsl:attribute name="{@name}">
<!-- here for the first loop, it prints ID="CompanyNmae"but for the second loop, it evaluates the boolean character and prints ReadOnly instead of ReadOnly="True" -->
<xsl:value-of select="current()"></xsl:value-of>
</xsl:attribute>
</xsl:for-each>
|