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

A really easy xsl:if quesion

Status
Not open for further replies.

steve100

Technical User
Aug 15, 2002
35
0
0
GB
Hiya,

A really easy question for you

can I do this in XML to only show a link if the ultraseek_query/results/next/@href contains something?

<xsl:if ultraseek_query/results/next/@href !="">
<a id="next"><xsl:attribute name="href"><xsl:value-of select="ultraseek_query/results/next/@href" /></xsl:attribute>Next</a>
</xsl:if>
 
>[tt]<xsl:if ultraseek_query/results/next/@href !="">
[/tt]
The xsl:if element's syntax is something like this.
[tt] <xsl:if test="ultraseek_query/results/next/@href !=''">[/tt]
Try it out and mind the proper reference of the context.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top