Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/03/2008, 21:05
ARAPSPGON
 
Fecha de Ingreso: octubre-2007
Mensajes: 57
Antigüedad: 17 años, 5 meses
Puntos: 0
(DUDA) No me funcionan los xlink HELP ME!

tengo un problem y no se que estoy haciendo mal

los enlaces xlink no me funcionan.

mi archivo xml "tienda.xml"

Código:
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<?DOCTYPE stock SYSTEM "validacion_tienda.dtd"?>
<?xml-stylesheet type="text/xsl" href="styleshop.xsl"?>
<stock>
  <producto>
    <codigo>2T</codigo>
    <articulo>Toshiba A200</articulo>
    <existencias>6</existencias>
	<ficha
	        xmlns:xlink="http://www.w3.org/1999/xlink"
			xlink:type="simple"
			xlink:show="replace"
			xlink:actuate="onRequest"
			xlink:href="especificaciones.xml">Ver</ficha>
  </producto>
  <producto>
    <codigo>5H</codigo>
    <articulo>HP 3000</articulo>
    <existencias>5</existencias>
    <ficha
	        xmlns:xlink="http://www.w3.org/1999/xlink"
			xlink:type="simple"
			xlink:show="replace"
			xlink:actuate="onRequest"
			xlink:href="especificaciones.xml">Ver</ficha>
  </producto>
  <producto>
    <codigo>1A</codigo>
    <articulo>ACER aspire</articulo>
    <existencias>3</existencias>
    <ficha
	        xmlns:xlink="http://www.w3.org/1999/xlink"
			xlink:type="simple"
			xlink:show="replace"
			xlink:actuate="onRequest"
			xlink:href="especificaciones.xml">Ver</ficha>
  </producto>
</stock>
el archivo XSLT "styleshop.xsl"

Código:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<html>
<head>
<title>www.InfoStocks.com</title>
</head>

<body bgcolor="#999999" text="#000000" link="#000000" vlink="#000000" alink="#000000">
<h1 align="center"><font color="#FFFFFF">INFOSTOCKS </font></h1>
<h2 align="center">Teléfono: 957 87 12 23</h2>
<h2 align="center">Portátiles</h2>
<table width="401" height="122" border="1" align="center" cellspacing="0" bordercolor="#000000" bgcolor="#FFFFFF">
  <tr>
    <td width="84"><h3 align="center"><font color="#0000FF">CÓDIGO</font></h3></td>
    <td width="99"><h3 align="center"><font color="#0000FF">EXISTENCIAS</font></h3></td>
    <td width="204"><h3 align="center"><font color="#0000FF">ARTICULO</font></h3></td>
	<td width="204"><h3 align="center"><font color="#0000FF">FICHA TÉCNICA</font></h3></td>
  </tr>
  <xsl:for-each select="stock/producto" >
  <tr>
    <td><h3 align="center"><xsl:value-of select="codigo"/></h3></td>
    <td><h3 align="center"><xsl:value-of select="existencias"/></h3></td>
    <td><h3 align="center"><xsl:value-of select="articulo"/></h3></td>
	<td><h3 align="center"><a name="{@xlink:name}" href="{@xlink:href}" target="{@xlink:show}"><xsl:value-of select="ficha"/></a></h3></td>
  </tr>
  </xsl:for-each>
</table>

</body>
</html>

</xsl:template>
</xsl:stylesheet>
no me enlaza con el archivo "especificaciones.xml"

alguien sabe que estoy haciendo mal. gracias