LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > problem with XML

Reply
 
Thread Tools Display Modes
  #1  
Old 12-11-2004, 01:29 PM
Pawelek Pawelek is offline
New Member
 
Join Date: Aug 2004
Posts: 4
Default problem with XML

Hello

I have problem with XML, its not working.
I'm using LiteSpeed/2.0RC3 Standard
I have 2 files:
Quote:
Originally Posted by baza.xml
<?xml version="1.0" encoding="ISO-8859-2"?>
<?xml-stylesheet type="text/xsl" href="3.xsl"?>
<baza>
<osoba plec="M" hobby="samochody" sport="kosz" chory="glowa">
<imie>Łukasz</imie>
<imie>Jerzy</imie>
<imie>Izydor</imie>
<nazwisko>Budnik</nazwisko>
<data_ur>1983-03-07</data_ur>
<miejsce_ur>Wejherowo</miejsce_ur>
</osoba>
<osoba plec="K" hobby="komputery" sport="lyzwy">
<imie>Kasia</imie>
<imie>Kaśka</imie>
<imie>Kasiunia</imie>
<nazwisko>Skowrońska</nazwisko>
<data_ur>1983-03-07</data_ur>
<miejsce_ur>Poznań</miejsce_ur>
</osoba>
</baza>


Quote:
Originally Posted by 3.xsl
<?xml version="1.0" encoding="ISO-8859-2"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html"/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="baza">
<html>
<body>
<table align="center" border="1">
<tr>
<th>Płeć</th>
<th>Imię</th>
<th>Nazwisko</th>
<th>Data urodzenia</th>
<th>Miejsce urodzenia</th>
<th>Ulubiony sport</th>
<th>Hobby</th>
</tr>
<xsl:apply-templates/>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="osoba">
<tr>
<td>
<xsl:value-of select="@plec"/>
</td>
<td>
<xsl:for-each select="imie">
<xsl:value-of select="."/>


</xsl:for-each>
</td>
<td>
<xsl:value-of select="nazwisko"/>
</td>
<td>
<xsl:value-of select="data_ur"/>
</td>
<td>
<xsl:value-of select="miejsce_ur"/>
</td>
<td>
<xsl:value-of select="@sport"/>
</td>
<td>
<xsl:value-of select="@hobby"/>
</td>
</tr>
</xsl:template>
</xsl:stylesheet>
My little table not working.
I've tried apache 2.0 and its working good.

Where is the problem? It's my configuration ?

I think Litespeed accept XML becouse config files are writed in XML.

Thanks for help
Pawelek
Reply With Quote
  #2  
Old 12-11-2004, 07:46 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Pawelek,

Are you using Apache 2.0 mod_xslt? or using PHP's xslt functions?
LiteSpeed itself does not do xslt transformation yet, so you need to do it in PHP.
The xslt functions is not enabled in the prebuilt PHP binary, you need to built your own PHP binary, with --enable-xslt --with-xslt-sablotconfiguration options. Please follow our Howto to build PHP with fast cgi sapi.

Best Regards,
George
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Timeout Problem bkonia Install/Configuration 2 12-20-2008 12:00 PM
problem with php4 as fcgi both remote/local ts77 Install/Configuration 6 10-02-2006 04:46 PM
Problem running Gallery under LiteSpeed kchrist PHP 4 10-01-2006 02:53 PM
.htaccess problem xinn Install/Configuration 1 12-07-2005 12:01 PM
problem with php/lsws restart ts77 Install/Configuration 4 06-27-2005 10:23 PM


All times are GMT -7. The time now is 09:12 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.