473,545 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(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 &amp; 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&apos;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>

Nov 24 '05 #1
0 2135

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

Similar topics

1
1703
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 what's wrong that the entered values are not printed out. Can anyone please help me??? Any reply is appreciated. My code is as follow, you can copy...
3
12667
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 Web Control? For example, when i need to select the DOB (April 4, 1970), i need to page "left" endlessly.... I have found some controls on teh...
2
6162
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 ... http://www.bayes.co.uk/xml/portal.aspx?page=/xml/tutorial/index.xml&subpage=/xml/tutorial/filtering/filter.xml I experimented with the examples and found that they would...
0
1203
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 gridview. I have a stored procedure that returns data based on what parameter is passed in to it from the page load event of an asp.net form and then I...
3
1748
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 client-side or server-side wasn't an issue. Recently I've been overhauling the code in order to pass transform to the client wherever possible, and I've...
0
1492
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
1917
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 particular order (like ProductID, Name, Description, Quantity etc.) are displayed in one DataGrid where as the personal details of the buyer...
2
3748
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" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd"
5
2834
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... something like this being changed into this
0
7401
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7808
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7423
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7757
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5329
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3450
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3443
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1014
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.