Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/05/2008, 07:29
evoarte
 
Fecha de Ingreso: julio-2002
Mensajes: 813
Antigüedad: 21 años, 10 meses
Puntos: 2
link no validos

buenos días,

los enlaces se construyen mal, pero no se por que, perdón por poner aquí todo el código pero no encuentro el problema (para mi xml es nuevo)

http://www.dominio.es/riblog/xml/www.dominio.es/riblog/default.asp?id=5

por que le añade http://www.dominio.es/riblog/xml/ al enlace?

xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="rss.xsl" version="1.0"?>
<rss version="2.0">
<channel>
<title>DOMINIO</title>
<link>www.dominio.es/</link>
<description>ISME</description>
<language>en-us</language>
<lastBuildDate>mié, 14 may 2008 14:39:08 +0100</lastBuildDate>
<item>
<title><![CDATA[esto es una prueba Y con acentos]]></title>
<description><![CDATA[<p>que le pasa a este xml generado con acentos &aacute; &eacute; &iacute; &oacute; &uacute;</p>]]></description>
<link><![CDATA[www.dominio.es/riblog/default.asp?id=5]]></link>

<author><![CDATA[Administrador]]></author>
<comments><![CDATA[www.dominio.es/riblog/default.asp?id=5&comments=show]]></comments>
<pubDate>mié, 14 may 2008 14:34:00 +0100</pubDate>
</item>
</channel>
</rss>


xsl:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" version="1.0" encoding="utf-8" indent="yes"/>
<xsl:template match="/rss">
<html>
<head>
<title>RSS</title>

<style type="text/css">
body {}
table,td,th {}
#content {}
p {}
h1 {}
hr {}
</style>
</head>
<body>
<div id="content">
<h1>RSS</h1>
<p></p><hr />
<xsl:apply-templates select="channel/item" />
<hr />
RSS
</div>
</body>
</html>
</xsl:template>
<xsl:template match="item">
<h1>
<a href="{link}">
<xsl:value-of select="title"/>
</a>
</h1>
<p>
<xsl:value-of select="description" disable-output-escaping="yes" />
<br />
[<xsl:value-of select="pubDate" />]
<br />
<a href="{link}">Read on</a>
<br /><br />
</p>
</xsl:template>
</xsl:stylesheet>

salu2.
jose carlos.