[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Turning on/off href's
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|