473,396 Members | 1,975 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

XML Client/server side

Hello,

I'm quite a newbie in XML. What I wanted to do is just a simple web page
(html or xhtml) that use XML. The point of the page is to show all my
links/bookmarks, wherever I want to see them through a browser.

So, I wrote a simple XML file and a simple XSL-T file that process the XML.

I like it : really easy to maintain, change the layout. So far, so
good.... BUT :

On the client side :
====================

My default browser is firebird 0.7 (on Fedora Linux) and it works just
perfectly (http://marcfrei.net/links.xml to have an idea of my goal).
Problem, all the other tested browsers (IE 5.5 - 6, Safari, Netscape
etc...) are not able to "render" my page correctly (or at all).... Again,
the goal is to have access to this page from anywhere, including where
"they" don't use the excellent firebird.

So, I looked....

On the server side :
====================

I installed/tested cocoon. OK but too powerfull/complex just to render an
XML through an XSL-T.... Also, it's integration with apache2 is not clear
and I don't want to use cocoon as a standalone, for security reasons and
ease of maintenance of the server. (mainly).

So, I had a look to sablotron with mod_xslt.... Unfortunately, I couldn't
compile/use it with apache2.... That's quite bad because it looked as the
perfect solution for my needs.... Also, mod_xslt seems "old" and not
really maintained.

------

Maybe it's "too hearly" to use XML this way ? Ok maybe I just missed
something... (I'm a newbie....)

Any comments/suggestions to help me go further with XML are really
welcomed !!

Thanks.

M.


Jul 20 '05 #1
4 3522

Stop Bsod wrote:
Problem, all the other tested browsers (IE 5.5 - 6, Safari, Netscape
etc...) are not able to "render" my page correctly (or at all).... Again,
the goal is to have access to this page from anywhere, including where
"they" don't use the excellent firebird.


The HTML that you are generating is not well formed. For example:

<xsl:for-each select="/page/link[categ=$myid]">
<xsl:sort select="title" />
<tr>
<a href="{URL}" target="_blank"><xsl:value-of select="title" /></a>
</tr>
</xsl:for-each>

You are using an <a> tag inside a <tr> tag, which isn't valid. You
should have the <a> tag in a <td> tag, so something like this:

<xsl:for-each select="/page/link[categ=$myid]">
<xsl:sort select="title" />
<tr>
<td> <!-- Here -->
<a href="{URL}" target="_blank">
<xsl:value-of select="title" />
</a>
</td> <!-- ... and here -->
</tr>
</xsl:for-each>

Just a small example, I haven't looked at your XSL exhaustively. Make
sure you are generating well formed (or relatively well-formed) HTML.

Hope that helps a bit,
Sean
Jul 20 '05 #2
Le Tue, 16 Dec 2003 14:07:40 -0500, Sean Bright a
écrit :
Just a small example, I haven't looked at your XSL exhaustively. Make
sure you are generating well formed (or relatively well-formed) HTML.

Hope that helps a bit,


Thanks Sean,

It helps a bit ! But after correction, Internet Explorer (5.5) is still
unable to display it.

All the "static" side is correct, but the "dynamic" ("for each") side id
not shown. The table looks like empty.

M.

Jul 20 '05 #3
Stop Bsod wrote:

It helps a bit ! But after correction, Internet Explorer (5.5) is still
unable to display it.


Change this:

<th>
<xsl:value-of select="$mytitle"/>
</th>

to:

<b>
<xsl:value-of select="$mytitle"/>
</b>

Works perfectly for me in IE6.0

TH isn't valid inside a TD tag as far as I know. If you want to
continue to use the TH you should generate 2 rows instead of one...
something like this:

<tr>
<th>Linux</th>
<th>News</th>
<th>Utilities</th>
<th>Finance</th>
<th>Technical</th>
<th>Mails</th>
</tr>
<tr>
<td>
<!-- table with links for 'Linux' here -->
</td>
<td>
<!-- table with links for 'News' here -->
</td>
...
<td>
<!-- table with links for 'Mails' here -->
</td>
</tr>

Hope that helps!

Sean
Jul 20 '05 #4
"Stop Bsod" <ne**@marcfrei.org> wrote in message
news:pa****************************@marcfrei.org.. .
I'm quite a newbie in XML. What I wanted to do is just a simple web page
(html or xhtml) that use XML.
[...]
the goal is to have access to this page from anywhere, including where
"they" don't use the excellent firebird.
[...]
On the server side :
I installed/tested cocoon. OK but too powerfull/complex ...
Any comments/suggestions to help me go further with XML
are really welcomed !!


Here's a way to handle XML on the server so the sources look
the same as if they were going to be handled on the client. Also,
you can mix the xml/xsl files in with your other Apache website files:

http://www.csparks.com/XMLWithoutTea...verSideXML.xml

Jul 20 '05 #5

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

Similar topics

9
by: Kathryn | last post by:
Hiya I have a problem with using some client side and server side scripting together in an ASP. I'm using VBScript. What I'm trying to achieve is this - - Page loads up and some server side...
5
by: Matt | last post by:
I think this is the basic concept in ASP server-side development. My boss told me web application is NOT client-server application. I argued with him because browser is the client, and the server...
2
by: Dicky Cheng | last post by:
Hi, I am using .net remoting technology. I set up a .net remoting client and server in IIS. When the client calls the server, the server will run a long duration method (30-60seconds). I have a...
18
by: cjl | last post by:
Hey all: I know that it is silly in the age of Google to 'lose' something on the internet, but I recently checked out a project that had implemented a database with a subset of SQL in pure...
6
by: Ken Allen | last post by:
I am relatively new to .Net and C#, but I hav ebeen programing in other languages and done some COM work for a number of years. I am attempting to understand how to map an older program...
3
by: Borr | last post by:
Hi, I have an ASP .NET page, that runs client side timer that does something on the Server side and after that loads another page. So I have on client side something like : function...
4
by: | last post by:
Hello Guys, I am using the validation controls to validate my data. But the problem is "The page is still being posted to server". I want to get rid of the round trips to server. Are there...
14
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2)...
10
by: Ben | last post by:
Hi, I made an application in classic asp (reservation of books and video stuffs for students) and want to migrate to asp.net. The user has to chose a date, then pushung on a submit button. The...
5
by: Ankur | last post by:
Hi Folks, I am new for this group. I want to clarify one thing what's a basic difference between Client Side Java Script and Server Side Java Script. how we can differentiate it. Why we called...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.