473,386 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

hyperlinks in html binded with xml

1
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="someXSLfile.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.poznan.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.poznan.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()">&gt; następna strona</button>
<button onclick="tabela.lastPage()">&raquo; ostatnia strona</button>
<br>
<table id="tabela" datasrc="#dsoLINKI" 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="ODNOSNIK"></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 1654
jkmyoung
2,057 Expert 2GB
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
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...
9
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...
4
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...
4
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
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...
1
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
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...
2
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...
92
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"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...

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.