Need Help With Client Side XML Transform & Paging

D

dnphamus13

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')">DreamCast</Button></td>
</tr>
<tr>
<td><button
onClick="javascript:load_DataView('GameCube')">GameCube</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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top