[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: creating hyperlinks of xmls
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: 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
|
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
|