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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<B>Linked List Items</b>

Status
Not open for further replies.

kafmil

Technical User
Jul 15, 2002
71
AU
I have a xml/asp page in which I am entering bulletted list items
which are links. The list item shows up but the text is blank. When I
click view source the text is in the page and the text color has not
changed but it does not display on the page. If I select the text I
can see it and it is linked but for some reason I just can't see it on
the page. Can anyone help. Heres my xsl code.

<ul>
<xsl:for-each select=&quot;field[@name='headingbullets']/content/item&quot;>
<xsl:sort order=&quot;ascending&quot; select=&quot;@order&quot;/>
<li>
<b>
<a>
<xsl:attribute
name=&quot;href&quot;>documents/<xsl:value-of
select=&quot;field[@name='htmlfile']/@value&quot;/></xsl:attribute>
<xsl:value-of
select=&quot;field[@name='bullet']/@value&quot;/>
</a>
</b>
</li>
</xsl:if>
</xsl:for-each>
</ul>

 
This is a common problem that I have committed many many times :)
In order to create your anchors like this you need to use the
Code:
<xsl:element name=&quot;a&quot;>
instead of the
Code:
</a>
tag, like so:
Code:
<xsl:element name=&quot;a&quot;>
    <xsl:attribute name=&quot;href&quot;>documents/<xsl:value-of
select=&quot;field[@name='htmlfile']/@value&quot;/></xsl:attribute>
    <xsl:value-of select=&quot;field[@name='bullet']/@value&quot;/>
</xsl:element>
I think thats the correct syntax, you should probably double check though since it's been a few months since my last xsl

-Tarwn --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
For my next trick I will pull a hat out of a rabbit (if you think thats bad you should see how the pigeon feels...) :p
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top