473,404 Members | 2,179 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,404 software developers and data experts.

xml and linking help please

I need to have some links within an xml document to external pages. I
have tried with the below xml and xsl documents(the proposed link has
a tag called link under paragraph):

XML:
----------------------------
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="rates.xsl"?>
<rates>
<pagetitle>Rates 2003/2004</pagetitle>
<group>
<content>
<paragraph>
These rates do not contain cleaning/maintenance fees
($100) or the 11.5% Florida Sales Tax.
</paragraph>
<paragraph>
Minimum Rental (3)Nights.
</paragraph>
<paragraph>
No Pets/No Smoking Allowed.
</paragraph>
<paragraph>
Rates subject to
<link
xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple"
xlink:href="http://www.cnn.com">
change
</link>
without notification.
</paragraph> <paragraph>
Security deposit of $200 is required to hold
reservation &amp; is returned within 2 weeks
of departure.
</paragraph>
</content>
<ratetable>
<tableheaderseason>Season</tableheaderseason>
<tableheaderdaily>Daily</tableheaderdaily>
<tableheaderweekly>Weekly(Sat-Sat)</tableheaderweekly>
<tableheadermonthly>Monthly</tableheadermonthly>
<seasonalrows>
<rowseason>Fall</rowseason>
<rowdates>9/6 - 10/24/03</rowdates>
<rowdaily>$159</rowdaily>
<rowweekly>$963</rowweekly>
<rowmonthly>Inquire</rowmonthly>
</seasonalrows>
<seasonalrows>
<rowseason>Winter</rowseason>
<rowdates>10/25 - 2/28/04</rowdates>
<rowdaily>$129</rowdaily>
<rowweekly>$783</rowweekly>
<rowmonthly>Inquire</rowmonthly>
</seasonalrows>
</ratetable>
</group>
</rates>
XSL:
--------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
<html>
<head>
<title><xsl:value-of select="rates/pagetitle" /> -
kscarrollproperties.com</title>
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-1" />
<meta content="MSHTML 6.00.2800.1226" name="GENERATOR" />
<link media="all" href="global.css" type="text/css" rel="stylesheet"
/>
<style type="text/css" media="all">@import url(global_p.css);</style>
<script language="javascript"><!--
function show(object) {
if (document.getElementById) {
document.getElementById(object).style.visibility = 'visible';
}
else if (document.layers && document.layers[object]) {
document.layers[object].visibility = 'visible';
}
else if (document.all) {
document.all[object].style.visibility = 'visible';
}
}

function hide(object) {
if (document.getElementById) {
document.getElementById(object).style.visibility = 'hidden';
}
else if (document.layers && document.layers[object]) {
document.layers[object].visibility = 'hidden';
}
else if (document.all) {
document.all[object].style.visibility = 'hidden';
}
}
//-->
</script>
</head>
<body>
<div id="setwidth">
<div id="right2column">
<div id="left"></div>
<div class="leftsiderates">
<h1><xsl:value-of select="rates/pagetitle" /></h1>
<xsl:for-each select="rates/group/content/paragraph">
<p><xsl:value-of select="." /></p>
</xsl:for-each>
</div>
<div class="rightsiderates">
<table border="0" cellspacing="1" cellpadding="4">
<tr>
<td class="rowHead"><xsl:value-of
select="rates/group/ratetable/tableheaderseason" /></td>
<td class="rowHead"><xsl:value-of
select="rates/group/ratetable/tableheaderdaily" /></td>
<td class="rowHead"><xsl:value-of
select="rates/group/ratetable/tableheaderweekly" /></td>
<td class="rowHead"><xsl:value-of
select="rates/group/ratetable/tableheadermonthly" /></td>
</tr>
<tr>
<td colspan="4" class="rowSubHead">View <a
href="#">availability</a> or <a href="contact.htm">contact us</a> to
reserve your dates.</td>
</tr>
<xsl:for-each select="rates/group/ratetable/seasonalrows">
<tr>
<td class="row1"><span class="dkbluetext"><xsl:value-of
select="rowseason" /></span></td>
<td class="row1r"><xsl:value-of select="rowdaily" /></td>
<td class="row1r"><xsl:value-of select="rowweekly" /></td>
<td class="row1"><a href="contact.htm"><xsl:value-of
select="rowmonthly" /></a></td>
</tr>
</xsl:for-each>
</table>
</div>
<br clear="all" /><br clear="all" />
</div>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
I appreciate any help
Jul 20 '05 #1
0 1261

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

Similar topics

0
by: Dibyendu Roy | last post by:
Hi All, I build an object called "dblorcle" to connect to oracle database in Sun solaris box. This is built linking with various oracle ".a" (archived, for static linking) files come with standard...
27
by: Lee Phillips | last post by:
I believe it is universally accepted that decorating your website with images from someone else's, without permission, is rude and unethical, even if the images are in the public domain, because...
0
by: gasturbtec | last post by:
please help im new at access programming and i just got this project dropped in my lap because the old programmer quit. i've been doing ok so far but now i need to add code to an existing database...
1
by: bab | last post by:
i need help linking my relational data base. some one help me please. i can link a one to one relationship but i cant link a one to many for some unknown reason. can some one please tell me how to...
1
by: buchalino | last post by:
Hi Guys, Please can someone help me, I am having a linking problem . I am writing a socket program, the problem is just the linking . I am using VC++ In the process of the problem, I...
1
by: srikar | last post by:
what is the difference between static linking & dynamic linking, what are the advantages of each? How to perform static linking & Dynamic linking by using gcc -o liniking will be done , but...
0
by: xieml2007 | last post by:
Dear Madam or Sir, I encountered one problem which is quite similiar to the discussions launched at the web site: http://www.thescripts.com/forum/thread280324.html
2
by: pssraju | last post by:
Hi, At present application was built on solaris 9 using sun studio 9 (Sun C++ 5.6) & rouguewave sorce pro 5. We are planning to port the same application onto SuSE Linux 9.5.0 using GCC 3.3.3 & RW...
0
by: Tarik Monem | last post by:
I have been working on an all AJAX/DOM web site which is set to go live today and I thought I'd share my discoveries with all of you whom have helped me when I have encountered different issues along...
11
by: =?Utf-8?B?aWduaGVucnk=?= | last post by:
I have a managed C++ project and two C# projects. All are class library projects. The C++ project links with native C++ static libraries and references to one C# project. The projects structure...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.