472,354 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Need Help With Client Side XML Transform & Paging

I'm new to this and drowning right now. I would like to put my database
online for viewing. I managed to do the filtering but i need to do
PAGING as the XML doc get bigger. From what i understand this is what I
need to do; transform the current XML doc with the filterring xsl, then
somehow add the paging xsl. That's the part i'm having trouble with.
I'm using JavaScript to apply the filterring XSL to XML doc. Filterring
is based on what the user selected. This is still a work in progress, i
haven't got a DOMAIN yet, so everything i've been doing has been by
hand with notepad. My plan is to have one XML for the data, an XSL
filterring for each button, and one XSL doc for PAGING

I've attached the code for the HTMLs, XML, and one of the XSLs below

thanx...

<HTML>
<HEAD>
<!--- Home Page --->

<script language= "javascript">
var system = '';
</script>

<TITLE>Value Passing</TITLE>
</HEAD>
<FRAMESET cols= "132,*" frameborder= "0">
<Frame name = "selector" SRC = "buttons_table.html" scrolling =
"no" noresize target= "_self">
<Frame name = "DataView" SRC = "http://www.yahoo.com" scrolling =
"auto" target= "_self">
</FRAMESET>

</HTML>

================================================== ================================================== ========================

<html>
<!--- Buttons Table For User Input --->
<head>

<script language ="javascript">

function load_DataView(selected) {
parent.system = selected;
parent.DataView.location = "xml-transform.html";
}

</script>

<title>Buttons</title>

</head>
<body>
<table CELLPADDING= "2">
<th align= "left">Home Systems</th>
<tr>
<td><button
onClick="javascript:load_DataView('DreamCast')">Dr eamCast</Button></td>
</tr>
<tr>
<td><button
onClick="javascript:load_DataView('GameCube')">Gam eCube</Button></td>
</tr>
<tr>
<td><button
onClick="javascript:load_DataView('PC')">PC</Button></td>
</tr>
<tr>
<td><button
onClick="javascript:load_DataView('PlayStation')"> PlayStation</button></td>
</tr>
<tr>
<td><button
onClick="javascript:load_DataView('Xbox')">XBox</button></td>
</tr>
<table>

</body>
</html>

================================================== ================================================== =========================

<html>
<head>
</head>
<body>

<script type="text/javascript">

// Load XML
var xml = new ActiveXObject("Microsoft.XMLDOM");
xml.async = false
xml.load("Games.xml")
// Load XSL
var xsl = new ActiveXObject("Microsoft.XMLDOM")
xsl.async = false
switch (parent.system) {
case "DreamCast": xsl.load("DreamCast.xsl"); break
case "GameCube": xsl.load("GameCube.xsl"); break
case "PC": xsl.load("PC.xsl"); break
case "PlayStation": xsl.load("PlayStation.xsl"); break
case "Xbox": xsl.load("Xbox.xsl"); break
}

// Transform
document.write(xml.transformNode(xsl))

</script>

</body>
</html>

================================================== ================================================== =========================

<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<body>
<table border="2" bgcolor="yellow">
<xsl:for-each select="Games/Game[System='DreamCast']" order-by="+
Game_Name">
<tr>
<td width= "325"><b><xsl:value-of
select="Game_Name"/></b></td>
<td rowspan= "3" width= "300"><font size= "4"><xsl:value-of
select="Notes"/></font></td>
</tr>
<tr>
<td><xsl:value-of select="Kanji"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

================================================== ================================================== =========================

<?xml version="1.0" encoding="UTF-8"?>
<Games>
<Game>
<Game_Name>007 NightFire</Game_Name>
<Kanji>007???????</Kanji>
<System>GameCube</System>
</Game>
<Game>
<Game_Name>Biohazard Gun Survivor</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Brute Force</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Castlevania: Symphony of the Night</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Confidential Mission</Game_Name>
<System>DreamCast</System>
</Game>
<Game>
<Game_Name>Dead or Alive 3</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Dead or Alive Xtreme Beach Volleyball</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Devil May Cry</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Devil May Cry 2</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Dino Stalker</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>DragonBall Z Budokai</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>DragonBall Z Budokai 2</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Gauntlet Dark Legacy</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Ghost Recon</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Gran Turismo 3 A-spec</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Gun Survivor 2 Biohazard Code: Veronica</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Gungrave</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Halo</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Halo 2</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Hitman 2 Silent Assassin</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Hitman: Code 47™</Game_Name>
<System>PC</System>
</Game>
<Game>
<Game_Name>Kengo: Master of Bushido</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Koudelka</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Marvel vs. Capcom: Clash of Super Hereos</Game_Name>
<System>DreamCast</System>
</Game>
<Game>
<Game_Name>Maximo Ghost to Glory</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Medal of Honor Frontline</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Metroid Prime</Game_Name>
<System>GameCube</System>
</Game>
<Game>
<Game_Name>Midnight Club II</Game_Name>
<System>PC</System>
</Game>
<Game>
<Game_Name>Midnight Club Street Racing</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>NBA 2K</Game_Name>
<System>DreamCast</System>
</Game>
<Game>
<Game_Name>NBA 2K2</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>New Legends</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>NFL 2K</Game_Name>
<System>DreamCast</System>
</Game>
<Game>
<Game_Name>Ninja Gai Den</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Onimusha</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Onimusha Blade Warriors</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Onimusha Warlords</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Phanton Crash</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Project Gothan Racing</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Project Gothan Racing 2</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>RalliSport Challenge</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Red Faction</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Red Faction II</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Resident Evil</Game_Name>
<System>GameCube</System>
</Game>
<Game>
<Game_Name>Resident Evil 2</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Resident Evil 3: Nemesis</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Resident Evil Code: Veronica</Game_Name>
<System>DreamCast</System>
</Game>
<Game>
<Game_Name>Resident Evil Dead Aim</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Resident Evil Zero</Game_Name>
<System>GameCube</System>
</Game>
<Game>
<Game_Name>Ridge Racer V</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Sega GT 2002</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Sega Smash Pack Volume 1</Game_Name>
<System>DreamCast</System>
</Game>
<Game>
<Game_Name>Shinobi</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Socom: US Navy Seals</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Soul Calibur</Game_Name>
<System>DreamCast</System>
</Game>
<Game>
<Game_Name>Splinter Cell</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Splinter Cell Pandora Tomorrow</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Star Wars Bounty Hunter</Game_Name>
<System>GameCube</System>
</Game>
<Game>
<Game_Name>Star Wars Knights of the Old Republic</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Star Wars The Clone Wars &amp; Tetris Worlds</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Star Wars®: Knights of the Old Republic™</Game_Name>
<System>PC</System>
</Game>
<Game>
<Game_Name>Street Fighter Alpha 2</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Street Fighter III: Third Strike</Game_Name>
<System>DreamCast</System>
</Game>
<Game>
<Game_Name>Sword of the Berserk: Gut&apos;s Rage</Game_Name>
<System>DreamCast</System>
</Game>
<Game>
<Game_Name>Syphon Filter 2</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>The Getaway</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>The House of the Dead 2</Game_Name>
<Kanji>?·???·??·?·???2</Kanji>
<System>DreamCast</System>
</Game>
<Game>
<Game_Name>The Lord of the Rings The Fellowship of the
Rings</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>The Lord of the Rings The Two Towers</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>The Need for Speed Collection</Game_Name>
<System>PC</System>
</Game>
<Game>
<Game_Name>Virtua Fighter 4</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Virtual On: Oratorio Tangram</Game_Name>
<Kanji>??????·??????????</Kanji>
<System>DreamCast</System>
</Game>
<Game>
<Game_Name>Way of the Samurai 2</Game_Name>
<System>PlayStation</System>
</Game>
<Game>
<Game_Name>Xbox Game Disc 27</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Xbox Game Disc 43</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Xbox Game Disc 5</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>XIII</Game_Name>
<System>PC</System>
</Game>
<Game>
<Game_Name>XIII</Game_Name>
<System>PlayStation</System>
</Game>
</Games>

Nov 24 '05 #1
0 2028

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

Similar topics

1
by: Renee | last post by:
I am doing a simple client-side example using DOM in JScript. When the user enter info and click on the submit button, it will then print the value at the bottom of the page. However, I don't know...
3
by: charliewest | last post by:
Can someone recommend a fairly easy to use ASP.NET custom calendar control that makes it easy for the user to select the month and year - versus the inherent "paging" that is used in the default...
2
by: Alan Searle | last post by:
I would like to use an XSL/HTML template to sort XML data dynamically on the client side. As it is, I found a tutorial showing how to do this on the following site ... ...
0
by: NH | last post by:
I know how to make client side paging work in the gridiew control using a sqlDataSource (and it works great!). But how can I "code" this i.e. I want to use a dataset as the datasource of the...
3
by: Simon Brooke | last post by:
I've been doing XSL transforms, converting XML to HTML, server side since 2000. In those days, clients which could do the transformation client side didn't exist, so whether to transform...
0
by: apolyxrono | last post by:
I would like to know about client side paging using xml/xsl and jsp . Is there any tutorial i can study? thanks
2
by: rn5a | last post by:
In a shopping cart app, a ASPX page retrieves the order details & personal details of a user from a MS-Access database table depending upon the username of the user. The order details of a...
2
by: jluo | last post by:
Hi all, Need some help here. I'm using these in a xsl: ~~~~~~~~~~~~~~~ <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0"...
5
by: =?Utf-8?B?Um9iZXJ0?= | last post by:
Hello all, I have an XmlException being thrown trying to use XslCompiledTransform while using the google api. My suspicion is there is some html decoding happening that I want to prevent... ...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
0
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

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.