Subject: RE: [xsl] creating hyperlinks of xmls From: "Jeremy Jongsma" <jjongsma@xxxxxxxxxxxxxxxx> Date: Fri, 20 Apr 2001 10:46:57 -0500 |
Hi Koray, For <a> tags, since you will be customizing the href attribute, you must use the <xsl:element> tags to define it: <xsl:element name="a"> <xsl:attribute name="href"><xsl:value-of select="destination"/></xsl:attribute> <xsl:value-of select="title/> </xsl:element> This is assuming that the <destination> element contains the URL you wish to link to. Jeremy Jongsma Webmaster, FutureSource/Bridge jjongsma@xxxxxxxxxxxxxxxx -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Koray Berk Sent: Friday, April 20, 2001 10:09 AM To: XSLList (E-mail) Subject: [xsl] creating hyperlinks of xmls I am trying to form an xml for archiving important links. The xml looks something like this: <entities> <entity> <title>Title of Link</title> <abstact>A little abstract here</abstract> <keywords>keywords, hints, tips, tricks</keywords> <destination>c:\myfile.txt</destination> </entity> <entity> <title>Title of Link2</title> <abstact>A little abstract2 here</abstract> <keywords>keywords2, hints2, tips2, tricks2</keywords> <destination>c:\myfile2.txt</destination> </entity> </entities> For the xsl I can manage all but the line that generates <a href="myfile.txt">Title Of Link</a> Of course, taking into my prior question, which xmlns should I use with your advise. Sorry to ask simple questions, but thats where I am so far! Thanx from Istanbul, Koray XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] creating hyperlinks of xmls, Koray Berk | Thread | Re: [xsl] creating hyperlinks of xm, David Carlisle |
Re: [xsl] XML source with DOCTYPE d, David Carlisle | Date | [xsl] concat selected text nodes, Steve Renshaw |
Month |