Sign Up
Search
Options
search
Chat
Help
News
Log in
Not Logged in
Home
»
Boards
»
Stylus Studio Developer Network
»
XSLT Help and Discussion
»
different behaviors required.
Topic
Topic Page
1
2
3
4
5
6
7
8
9
Prev Topic
Next Topic
next
Subject:
different behaviors required.
Author:
Viral Gupta
Date:
08 Mar 2007 10:11 AM
I wanna chk if the xml tag has value in it or not.
I mean something like this.
XML is like this.
<paper>
<Topic>Pets and animals </Topic>
<Full-Paper-link></Full-Paper-link>
<paper>
and XSLT is like this.
<a>
<xsl:attribute name="href"><xsl:value-of select="Full-Paper-link"/> </xsl:attribute >
<span style="color: #0000ff">
<xsl:value-of select="Topic"/>
</span>
</a>
Now i want that if tag <Full-Paper-link></Full-Paper-link> does not have any value i shd nt get the hyperlink.
which means
i shd be able to chk and get only
<xsl:value-of select="Topic"/>
Thanks for the help.
top
Subject:
different behaviors required.
Author:
Ivan Pedruzzi
Date:
08 Mar 2007 10:36 AM
<a>
<xsl:if test="string-length(Full-Paper-link)">
<xsl:attribute name="href"><xsl:value-of select="Full-Paper-link"/> </xsl:attribute >
</xsl:if>
<span style="color: #0000ff">
<xsl:value-of select="Topic"/>
</span>
</a>
Ivan Pedruzzi
Stylus Studio Team
Topic Page
1
2
3
4
5
6
7
8
9
Prev Topic
Next Topic
Powered by
Stylus Studio
, the world's leading
XML IDE
for
XML
,
XSLT
,
XQuery
,
XML Schema
,
DTD
,
XPath
,
WSDL
,
XHTML
,
SQL/XML
, and
XML Mapping
!
Go to Conference:
Select Conference
Stylus Studio Feature Requests
Stylus Studio Technical Forum
Website Feedback
XSLT Help and Discussion
XQuery Help and Discussion
Stylus Studio FAQs
Stylus Studio Code Samples & Utilities
Stylus Studio Announcements
go
Log In Options
Username:
Password:
Site Map
|
Privacy Policy
|
Terms of Use
|
Trademarks
Stylus Scoop XML Newsletter:
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.