Dimitre Novatchev said:
Unless somebody is a clairevoyant (and also knows xslt) you're probably not
going to get any help.
Where is your source xml document?
What is the result that you want to get?
What output do you get instead?
What are the essential properties of the transformation?
What does it mean "the HTML doesn't work" ?
=====
Cheers,
Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL
Sorry I didn't include everything. Anyways all I am getting is a
string that reads 1ps2slycooperAWittygamethatisfunforeberybodyimages\SlyCooper.jpg
on a html page. When I say "the HTML doesn't work" I mean that the
tables and headings aren't appearing on the page so that the page
doesn't comes out formatted. All I want is a clean list of a picture,
title, and description on a HTML page. I am trying to get a very basic
..xml file working and from there I will build upon it. Below are my
files.
Here is my games.xsd file
<?xml version="1.0" encoding="iso-8859-1" ?>
<xs:schema id="Games" targetNamespace="
http://mark/DevelopmentWebsite"
elementFormDefault="qualified" xmlns="
http://mark/DevelopmentWebsite"
xmlns:mstns="
http://mark/DevelopmentWebsite"
xmlns:xs="
http://www.w3.org/2001/XMLSchema">
<xs:element name="Entertainment">
<xs:complexType>
<xs:sequence>
<xs:element name="GameList">
<xs:complexType>
<xs:sequence>
<xs:element name="ID" type="xs
ositiveInteger" />
<xs:element name="Console" type="xs:string" />
<xs:element name="Title" type="xs:string" />
<xs:element name="Description" type="xs:string" />
<xs:element name="Image" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
This is my games.xml file
<?xml version="1.0" encoding="utf-8" ?>
<Entertainment xmlns="
http://mark/DevelopmentWebsite">
<GameList>
<ID>1</ID>
<Console>PS2</Console>
<Title>Sly Cooper</Title>
<Description>A fun game for everybody</Description>
<Image>images\SlyCooper.jpg</Image>
</GameList>
</Entertainment>
This is my games.xslt file
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
xmlns:lc="
http://mark/DevelopmentWebsite">
<xsl:template match="lc">
<h2>My Game Collection</h2>
<table border="1">
<xsl:for-each select="lc:Entertainment/GameList">
<tr>
<th colspan="2"><xsl:value-of select="lc:Title"/></th>
</tr>
<tr>
<td>
<xsl:element name="lc:IMG">
<xsl:attribute name="lc:SRC">
<xsl:value-of select="lc:Image"/>
</xsl:attribute>
</xsl:element>
</td>
<td><xsl:value-of select="lc
escription"/></td>
</tr>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>