[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Turning on/off href's

Subject: Turning on/off href's
From: John Gethoefer <johng@xxxxxxxxxxxxx>
Date: Mon, 10 Jul 2000 14:58:19 -0700
a href off
I have the following XML document nodes:

<NavLink>
 <NavNum id="0">1</NavNum>
</NavLink>

<NavLink>
 <NavNum id="1">2</NavNum>
</NavLink>

<NavLink>
 <NavNum>3</NavNum>
</NavLink>

<NavLink>
 <NavNum id="3">4</NavNum>
</NavLink>

<NavLink>
 <NavNum id="4">5</NavNum>
</NavLink>

Notice how the third result doesn't have an id.

I am trying to set up an XSL file that will create a href for the result
using the id as the linking document in HTML.

The result I am looking for is:

<a href="XMLServlet?Page=0">1</a>
<a href="XMLServlet?Page=1">2</a>
3
<a href="XMLServlet?Page=3">4</a>
<a href="XMLServlet?Page=4">5</a>

Notice how the third result does not create an href

Could anyone help me figuring out how to write the XSL so that it will
know not to write an href for a result with no id?

Any help is appreciated.

-John Gethoefer
Portland, OR


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.