473,385 Members | 1,356 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,385 software developers and data experts.

HTML Hyperlink into an XML page?

Hi all,
I there any way of putting an html hyperlink into a .xml file, and still be
able to use the xml tags to format the page? Here is the code of the xml
file(real simple) and the .css file. I would like to use the .css as the
style sheet if possible.

Thanks,
Kelsey

<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/css" href="phone_catalog.css"?>
<requirement>
<page>index.htm</page>
<page>contact.htm</page>
<page>information.htm</page> <--like to put the hyperlinks here.
<page>NewPromo.htm</page>
</requirement>
CSS Below

requirement
{
background-color: #ffffff;
width: 100%;
color: red;
}

page
{
display: block;
margin-bottom: 3pt;
margin-left: 0;
}
element
{
color: #FF0000;
font-size: 20pt;
}
price
{
color: #0000FF;
font-size: 20pt;
}
Jul 20 '05 #1
1 3452
Randi wrote:
Hi all,
I there any way of putting an html hyperlink into a .xml file, and still be
able to use the xml tags to format the page? Here is the code of the xml
file(real simple) and the .css file. I would like to use the .css as the
style sheet if possible.

Thanks,
Kelsey

<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/css" href="phone_catalog.css"?>
<requirement>
<page>index.htm</page>
<page>contact.htm</page>
<page>information.htm</page> <--like to put the hyperlinks here.
<page>NewPromo.htm</page>
</requirement>


With Mozilla and Opera you should be able to use an XHTML link e.g.
<html:a xmlns:html="http://www.w3.org/1999/xhtml"
href="...">...</html:a>
as in

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="test20040507.css"?>
<requirement xmlns:html="http://www.w3.org/1999/xhtml">
<page><html:a href="index.htm">index</html:a></page>
<page><html:a href="contact.htm">contact</html:a></page>
<page><html:a href="information.htm">information</html:a></page>
<page><html:a href="NewPromo.htm">promotion</html:a></page>
</requirement>

Or with Mozilla you should be able use simple XLinks.

But in general you are better off with using XSLT to transform your XML
data to HTML and then serve that to the browsers.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Matt | last post by:
For example, how to represent hyperlink in XSL? I want to add hyperlink in XSL. i.e. I need to generate <A HREF="http://mypage.html">home page</A> in HTML. I tried the following approaches but...
0
by: lbailor | last post by:
Hi, I am very new to xml and I'm trying to display a page that pulls fields from my xml file and displays them in a table in an html page. So far this part is working. However, I want my one field...
6
by: Paolo Pignatelli | last post by:
I have an aspx code behind page that goes something like this in the HTML view: <asp:HyperLink id=HyperLink1 runat="server" NavigateUrl='<%#"mailto:" &amp;...
19
by: Joe | last post by:
I have an aspx page (referred to here as page_1) with a datagrid whose first column contains hyperlinks. When a user clicks one of these hyperlinks, he will navigate to another aspx page (referred...
1
by: Agnes | last post by:
I got a grid list the record, column1 is "number" When the user press colunn 1 , i want to show out the pdf file whose filename is same as column1's contents How can I do that ?? thanks a lot <a...
1
by: czi02 | last post by:
hi there is there anybody knows how to hyperling a page1 to another page?. For example ive hyerlink my name cziarel then I wanted it to show my pictures once i had hyperlink my me cziarel. ANd...
41
by: deko | last post by:
A web page can be created using either strict or transitional HTML. The DOCTYPE for strict is: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> And...
17
by: =?Utf-8?B?Y2F0aGFyaW51cyB2YW4gZGVyIHdlcmY=?= | last post by:
Hello, I have build a website with approximately 30 html-pages. When I search this website in Google, I see the index.html or home.html on this website, but also other html-pages on this...
20
by: tshad | last post by:
I had posted this problem earlier and just noticed that the Hyperlink is the problem. Apparently, it doesn't figure out the path correctly. It uses the path of the file it is in, even if it is...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.