473,788 Members | 2,751 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

hyperlinks in html binded with xml

1 New Member
Hi dear users

I'm completly new in XML
I'm trying to do the table with hyperlinks. Let me show you xml code (linki.xml)

<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="someXSLfi le.xsl"?>
<LINKI>
<LINK>
<NAZWA>PUT</NAZWA>
<OPIS>Strona główna Politechniki Poznańskiej</OPIS>
<ODNOSNIK>Here should be a hyperlink www.put.poznan. pl</ODNOSNIK>
</LINK>
<LINK>
<NAZWA>FEE</NAZWA>
<OPIS>Strona główna Wydziału Elektrycznego PP</OPIS>
<ODNOSNIK>here should be a hyperlink www.fee.put.poz nan.pl</ODNOSNIK>
</LINK>
<LINK>
<NAZWA>IEEP</NAZWA>
<OPIS>Strona główna Instytutu Elektrotechniki i Elektroniki Przemysłowej</OPIS>
<ODNOSNIK>Here should be a hyperlink www.iee.put.poz nan.pl</ODNOSNIK>
</LINK>

</LINKI>


And this is part of the html code (linki.html):

....
<XML ID="dsoLINKI" SRC="linki.xml" ></XML>

<br>
<button onclick="tabela .firstPage()">& laquo; pierwsza strona</button>
<button onclick="tabela .previousPage() ">&lt; poprzednia strona</button>
<button onclick="tabela .nextPage()">&g t; następna strona</button>
<button onclick="tabela .lastPage()">&r aquo; ostatnia strona</button>
<br>
<table id="tabela" datasrc="#dsoLI NKI" cellpadding="2" datapagesize="2 " width="628">
<thead>
<th>NAZWA</th>
<th>OPIS</th>
<th>ODNO¦NIK</th>
</thead>
<tr>
<td><span datafld="NAZWA" ></span></td>
<td><span datafld="OPIS"> </span></td>
<td><span datafld="ODNOSN IK"></span></td>
</tr>
</table>

.....

How to modify xml file if I want to have hyperlinks in the html table. I heard something about XSL stylesheets and thanks to them I can make field "ODNOSNIK" hyperlink. But I don't know the XSL. Can You help me?

Thanks in advance


Maciej
Jan 20 '08 #1
1 1670
jkmyoung
2,057 Recognized Expert Top Contributor
It looks like you already have the xsl file linked
- someXSLfile.xsl

Have you tried opening the xml by itself in IE? It should automatically call the xsl you have set up.

The html you're using uses datafields, which are deprecated, and won't work with browsers other than IE.


If you don't actually have the xml file setup, I suggest looking at the w3schools site:
http://www.w3schools.com/xsl/xsl_languages.asp
Jan 21 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
6163
by: scoop_77 | last post by:
I'm looking for some software that would allow me to point to a folder in Windows Explorer, and have it output an html file with hyperlinks to all of the files within that folder and all of the sub-folders. I have many folders with several dozen files and sub-folders and would like to avoid hand-coding all of the hyperlinks. Does anyone know if such software exists? Thanks in advance.
9
2677
by: middletree | last post by:
I have a page which takes data in an HTML table, and exports it to an Excel file. It works fine, but I want several things about the spreadsheet to look different from the HTML version. Things like fonts and colors. I think I can use a style sheet for the latter, but I haven't figured out how to remove hyperlinks from some of the items. On the HTML page, the hyperlinks are useful, but I don't want the spreadsheet to have them. So on my...
4
2182
by: bobdedogh | last post by:
can anyone add live hyperlinks to the sortable table made by the code supplied by Machi, or know of a simple alternative bob Machi wrote Mar 10 1999, 8:00 am >>>>>>>>>>>>>> .... Hello Harjinder!
4
4252
by: Seefor | last post by:
Hi, I want my text hyperlinks to have a dotted border underneath, so I did this which works fine: a, a:link, a:visited, a:hover, a:active { color: #000; text-decoration: none;
9
2971
by: Viken Karaguesian | last post by:
Hello all, I'm making a calendar section in a website. Each month is its own page and navigated by Previous / Next links. I have it working now with standard hyperlinks, but I want to learn how to use Link Rel and Link Rev commands to do the navigation. At the W3C website it shows how to use the Link Rel and Link Rev in the <head> section:
1
323
by: karl | last post by:
I am having trouble with hyperlinks in Access. They dont work! Any tips? I am trying to use them on a network drive. Karl
22
2492
by: RobClack | last post by:
I'm quite new to xml and xsl, so this could be quite simple. I have an xml file with some data in it and an xsl file to process it into a web page. What doesn't work is hyperlinks. I've read endless pages about how xlink works, but for me it just doesn't. No errors, just plain text and no hyperlinks. I'm running Firefox 2.0.0.3 but have also tried in IE7, getting exactly the same result. Here is some sample xml, lifted from w3schools and...
2
2647
by: Nathan | last post by:
I'm trying to use a LocalReport in a ReportViewer and make a couple fields in the report show up as hyperlinks so I can navigate to other pages after running the report. The hyperlinks themselves are not showing up at all unless I use something simple like, http://www.msnbc.com. When I use something more complicated like a relative path with a querystring, they just simply don't appear as hyperlinks at all, just flat text. Here's an...
92
5162
by: Erwin Moller | last post by:
Hi group, I encoutered page validation error, but I don't know a way around. The page has the following doctype: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> Some hyperlinks need to open to a new window, so I used the (wrong) target="" attribute.
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10366
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10173
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9967
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5399
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3674
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.