 |
 |
 |
Hi
my xml is like this
<emailaddresses>
<address>
<src>alias1</src>
<dstaccount>account1</dstaccount>
</address>
<address>
<src>alias2</src>
<dstaccount>account1</dstaccount>
</address>
<address>
<src>alias3</src>
<dstaccount>account2</dstaccount>
</address>
</emailaddresses>
<allowedaccounts>
<account>account1</account>
<account>account2</account>
<account>account3</account>
</allowedaccounts>
now I want foreach address to display a select-box which offers all
accounts in <allowedaccounts>, so for this, within my foreach loop of
<address> i start another foreach loop to display all accounts.
I've come this far
Now I want the select box to select the current configured account, how do
I do this? I was thinking of doing an "if" with the value of <dstaccount>
compared to the current value <account> and if they match, print a
"selected", but for now, I don't see a way on getting the value of
<dstaccount> into my most inner foreach loop. Anybody an idea?
I hope I made myself clear :)
this is the xsl code I have now
<xsl:for-each select="smartyrequest/form/emailaddresses/emailaddress">
<tr><td align="right">
<input type="text" size="25" name="alias[]" id="alias[]">
<xsl:attribute name="value"><xsl:value-of select="srcuser"/></xsl:attribute>
</input>@<xsl:value-of select="srcdomain"/>
</td><td>
<select name="destpopbox[]" id="destpopbox[]">
<xsl:for-each select="/smartyrequest/form/popboxes/popbox">
<option>
<xsl:attribute name="value"><xsl:value-of select="@login"/></xsl:attribute><xsl:value-of select="@login"/>
</option>
</xsl:for-each>
</select>
</td><td></td><td></td><td></td>
</tr>
</xsl:for-each>
thx
Arne
|
 | 

|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |