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(s elected) {
parent.system = selected;
parent.DataView .location = "xml-transform.html" ;
}
</script>
<title>Button s</title>
</head>
<body>
<table CELLPADDING= "2">
<th align= "left">Home Systems</th>
<tr>
<td><button
onClick="javasc ript:load_DataV iew('DreamCast' )">DreamCast </Button></td>
</tr>
<tr>
<td><button
onClick="javasc ript:load_DataV iew('GameCube') ">GameCube</Button></td>
</tr>
<tr>
<td><button
onClick="javasc ript:load_DataV iew('PC')">PC</Button></td>
</tr>
<tr>
<td><button
onClick="javasc ript:load_DataV iew('PlayStatio n')">PlayStatio n</button></td>
</tr>
<tr>
<td><button
onClick="javasc ript:load_DataV iew('Xbox')">XB ox</button></td>
</tr>
<table>
</body>
</html>
=============== =============== =============== =============== =============== =============== =============== =============== =====
<html>
<head>
</head>
<body>
<script type="text/javascript">
// Load XML
var xml = new ActiveXObject(" Microsoft.XMLDO M");
xml.async = false
xml.load("Games .xml")
// Load XSL
var xsl = new ActiveXObject(" Microsoft.XMLDO M")
xsl.async = false
switch (parent.system) {
case "DreamCast" : xsl.load("Dream Cast.xsl"); break
case "GameCube": xsl.load("GameC ube.xsl"); break
case "PC": xsl.load("PC.xs l"); break
case "PlayStatio n": xsl.load("PlayS tation.xsl"); break
case "Xbox": xsl.load("Xbox. xsl"); break
}
// Transform
document.write( xml.transformNo de(xsl))
</script>
</body>
</html>
=============== =============== =============== =============== =============== =============== =============== =============== =====
<?xml version='1.0'?>
<xsl:styleshe et 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='DreamCa st']" order-by="+
Game_Name">
<tr>
<td width= "325"><b><xsl:v alue-of
select="Game_Na me"/></b></td>
<td rowspan= "3" width= "300"><font size= "4"><xsl:va lue-of
select="Notes"/></font></td>
</tr>
<tr>
<td><xsl:valu e-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>00 7 NightFire</Game_Name>
<Kanji>007????? ??</Kanji>
<System>GameCub e</System>
</Game>
<Game>
<Game_Name>Bioh azard Gun Survivor</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Brut e Force</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Cast levania: Symphony of the Night</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Conf idential Mission</Game_Name>
<System>DreamCa st</System>
</Game>
<Game>
<Game_Name>De ad or Alive 3</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>De ad or Alive Xtreme Beach Volleyball</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Devi l May Cry</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Devi l May Cry 2</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Di no Stalker</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Drag onBall Z Budokai</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Drag onBall Z Budokai 2</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Gaun tlet Dark Legacy</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Ghos t Recon</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Gr an Turismo 3 A-spec</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Gu n Survivor 2 Biohazard Code: Veronica</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Gung rave</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Halo </Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Ha lo 2</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Hitm an 2 Silent Assassin</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Hitm an: Code 47™</Game_Name>
<System>PC</System>
</Game>
<Game>
<Game_Name>Keng o: Master of Bushido</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Koud elka</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Marv el vs. Capcom: Clash of Super Hereos</Game_Name>
<System>DreamCa st</System>
</Game>
<Game>
<Game_Name>Maxi mo Ghost to Glory</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Meda l of Honor Frontline</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Metr oid Prime</Game_Name>
<System>GameCub e</System>
</Game>
<Game>
<Game_Name>Midn ight Club II</Game_Name>
<System>PC</System>
</Game>
<Game>
<Game_Name>Midn ight Club Street Racing</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>NB A 2K</Game_Name>
<System>DreamCa st</System>
</Game>
<Game>
<Game_Name>NB A 2K2</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Ne w Legends</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>NF L 2K</Game_Name>
<System>DreamCa st</System>
</Game>
<Game>
<Game_Name>Ninj a Gai Den</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Onim usha</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Onim usha Blade Warriors</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Onim usha Warlords</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Phan ton Crash</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Proj ect Gothan Racing</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Proj ect Gothan Racing 2</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Rall iSport Challenge</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Re d Faction</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Re d Faction II</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Resi dent Evil</Game_Name>
<System>GameCub e</System>
</Game>
<Game>
<Game_Name>Resi dent Evil 2</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Resi dent Evil 3: Nemesis</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Resi dent Evil Code: Veronica</Game_Name>
<System>DreamCa st</System>
</Game>
<Game>
<Game_Name>Resi dent Evil Dead Aim</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Resi dent Evil Zero</Game_Name>
<System>GameCub e</System>
</Game>
<Game>
<Game_Name>Ridg e Racer V</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Se ga GT 2002</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Se ga Smash Pack Volume 1</Game_Name>
<System>DreamCa st</System>
</Game>
<Game>
<Game_Name>Shin obi</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Soco m: US Navy Seals</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>So ul Calibur</Game_Name>
<System>DreamCa st</System>
</Game>
<Game>
<Game_Name>Spli nter Cell</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Spli nter Cell Pandora Tomorrow</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>St ar Wars Bounty Hunter</Game_Name>
<System>GameCub e</System>
</Game>
<Game>
<Game_Name>St ar Wars Knights of the Old Republic</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>St ar Wars The Clone Wars & Tetris Worlds</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>St ar Wars®: Knights of the Old Republic™</Game_Name>
<System>PC</System>
</Game>
<Game>
<Game_Name>Stre et Fighter Alpha 2</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Stre et Fighter III: Third Strike</Game_Name>
<System>DreamCa st</System>
</Game>
<Game>
<Game_Name>Swor d of the Berserk: Gut's Rage</Game_Name>
<System>DreamCa st</System>
</Game>
<Game>
<Game_Name>Syph on Filter 2</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Th e Getaway</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Th e House of the Dead 2</Game_Name>
<Kanji>?·???·?? ·?·???2</Kanji>
<System>DreamCa st</System>
</Game>
<Game>
<Game_Name>Th e Lord of the Rings The Fellowship of the
Rings</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Th e Lord of the Rings The Two Towers</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Th e Need for Speed Collection</Game_Name>
<System>PC</System>
</Game>
<Game>
<Game_Name>Virt ua Fighter 4</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Virt ual On: Oratorio Tangram</Game_Name>
<Kanji>??????·? ?????????</Kanji>
<System>DreamCa st</System>
</Game>
<Game>
<Game_Name>Wa y of the Samurai 2</Game_Name>
<System>PlaySta tion</System>
</Game>
<Game>
<Game_Name>Xb ox Game Disc 27</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Xb ox Game Disc 43</Game_Name>
<System>Xbox</System>
</Game>
<Game>
<Game_Name>Xb ox 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>PlaySta tion</System>
</Game>
</Games>