Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Need Help With Client Side XML Transform & Paging

Reply
Thread Tools

Need Help With Client Side XML Transform & Paging

 
 
dnphamus13@yahoo.com
Guest
Posts: n/a
 
      11-24-2005
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 xmlnssl="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>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to execute client-side code _after_ client-side validation? Bogdan ASP .Net 2 06-09-2008 01:31 PM
Client side script after client side validation with asp.net 2.0 Boss302 ASP .Net 0 11-21-2006 08:43 AM
client side transform problem johnwallace2@gmail.com Javascript 1 12-02-2005 12:52 AM
blocking I/O with javax.xml.parsers.DocumentBuilder.parse() and javax.xml.transform.Transformer.transform() jazzdman@gmail.com Java 1 03-27-2005 06:56 AM
Adding custom client-side onClick handler with client-side validator controls Zoe Hart ASP .Net Web Controls 1 01-08-2004 10:45 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57