This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Turning on/off href's
- To: XSL-List at mulberrytech dot com
- Subject: Turning on/off href's
- From: John Gethoefer <johng at sportsmvp dot com>
- Date: Mon, 10 Jul 2000 14:58:19 -0700
- Reply-To: xsl-list at mulberrytech dot com
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