W3C home > Mailing lists > Public > www-xsl-fo@w3.org > October 2003

help with xsl

From: (wrong stri <zoso_86@hotmail.com>
Date: Sat, 11 Oct 2003 15:51:54 +0000
To: www-xsl-fo@w3.org
Message-ID: <BAY10-F92hs8v4gBlkV00005e18@hotmail.com>

i would appreciate alot if you help me..
well i have the xml that is this

<?xml version="1.0"?>
<libros>
	<libro>
		<titulo>Cien anos de soledad</titulo>
		<autor>Gabriel Garcia Marquez</autor>
		<editorial>Mc Graw Hill</editorial>
		<clasificacion>novela</clasificacion>
	</libro>

	<libro>
		<titulo>Aura</titulo>
		<autor>Carlos Fuentes</autor>
		<editorial>Era</editorial>
		<clasificacion>novela</clasificacion>
	</libro>
</libros>

the dtd file is this...

<!ELEMENT libros (libro+)>
<!ELEMENT libro (titulo+, autor+, editorial+, clasificacion+)>
<!ELEMENT titulo (#PCDATA)>
<!ELEMENT autor (#PCDATA)>
<!ELEMENT editorial (#PCDATA)>
<!ELEMENT clasificacion (#PCDATA)>

and I have a problem with the xsl...dunno what is... anyway i want to do a 
table ...

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<head>
<title>libros</title>
</head>
<body>
<table border ="3">
<xsl:for-each select="libros/libro">
<ul>
<li><xsl:value-of select="titulo"/></li><br/>
<li><xsl:value-of select="autor"/></li>
<li><&nbsp></li>
</ul>
</xsl:for-each>

what needs to be fix to be ok?

thanks

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail
Received on Saturday, 11 October 2003 11:57:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:11 GMT