Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xsl formatting not showing up...

Status
Not open for further replies.

jondoe0069

Programmer
Jul 16, 2007
19
US
I know I'm doing something dumb, but someone please tell me why my spacer image/line is not showing up on my page from the following code:

<xsl:for-each select="Spacer">
<tr bgcolor="#efefef">
<td colspan="3" height="1"><img src=" width="180" height="10" alt="" /></td>
</tr>
<tr bgcolor="#ce000c"><td width="25" height="25"><img src=" width="25" height="25" alt="" /></td>
<td width="10" height="25"><img src=" width="10" height="25" alt="" /></td>
<td width="145" height="25"><xsl:value-of select="Spacer/SpacerItem"/></td></tr></xsl:for-each>


I have the same formatting in another element above this element and it shows up. If I'm not explaining this clearly enough, please let me know. I'm new to XML/XSL. Thanks!
 
If it is having this,
[tt]<Spacer>
<SpacerItem>xyz</SpaceItem>
</Spacer>[/tt]
then it is this.
><xsl:value-of select="Spacer/SpacerItem"/>
[tt]<xsl:value-of select="[blue]SpacerItem[/blue]"/>[/tt]
 
why my spacer image/line is not showing up on my page
Which line are you having trouble with?
Is it the following line?
<td width="145" height="25"><xsl:value-of select="Spacer/SpacerItem"/></td>
 
Sorry, I was tired this morning when I wrote this.

The field with the data (value-of-select) is showing up with the correct formatting, but the following table formatting doesn't show up:

<td colspan="3" height="1"><img src=" width="180" height="10" alt="" /></td>
</tr>
<tr bgcolor="#ce000c"><td width="25" height="25"><img src=" width="25" height="25" alt="" /></td>
<td width="10" height="25"><img src=" width="10" height="25" alt="" /></td>

This is basically a sub-menu item, but I'm trying to use it as a spacer between two sections of my menu.

Thanks for your replies!
 
In that case this doesn't sound like an xml/xsl issue. It sounds like an html issue. Can you post what your resulting html looks like and highlight which part is not visible?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top