|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
The xml format is:
Code:
<collateral-list> - <collateral> - <collateral> - <collateral> </collateral-list> This is my xsl: Code:
<xsl:for-each select="collateral-list">
<tr >
<td colspan="2"><strong><font face="verdana" size="-1">Collateral Type</font></strong></td>
</tr>
<tr>
<td colspan="2"><font face="verdana" size="-1"><xsl:value-of select="."/></font></td>
</tr>
</xsl:for-each>
The problem is: It's displaying all the collateral in one line, and without any space. How do you insert a newline in between the values ? I have tried the Code:
<xsl:variable> <xsl:text> </xsl:text> </xsl:variable> and using the Code:
<xsl:text>ascii of newline</xsl:text> but none of them is working Any help will be greatly appreciated Cezar2000 |
|
#2
|
||||
|
||||
|
Could you get away with doing this?
Code:
<xsl:for-each select="collateral">
<tr >
<td colspan="2"><strong><font face="verdana" size="-1">Collateral Type</font></strong></td>
</tr>
<tr>
<td colspan="2"><font face="verdana" size="-1"><xsl:value-of select="."/></font></td>
</tr>
</xsl:for-each>
__________________
Hello, old friend... |
|
#3
|
|||
|
|||
|
It's working. Thx a lot :>
Sorry for such a newbie question ![]() |
|
#4
|
||||
|
||||
|
My solution is not elegant, it's quick-and-dirty.
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > need help with xsl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|