Subject: Turning on/off href's From: John Gethoefer <johng@xxxxxxxxxxxxx> Date: Mon, 10 Jul 2000 14:58:19 -0700 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
XSL to render RSS?, Rick Brannan | Thread | Re: Turning on/off href's, David Carlisle |
XSL to render RSS?, Rick Brannan | Date | RE: parent(), Spychalski, Frank |
Month |