Foros del Web » Programación para mayores de 30 ;) » Programación General »

(DUDA) No me funcionan los xlink HELP ME!

Estas en el tema de (DUDA) No me funcionan los xlink HELP ME! en el foro de Programación General en Foros del Web. 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"?> ...
  #1 (permalink)  
Antiguo 26/03/2008, 21:05
 
Fecha de Ingreso: octubre-2007
Mensajes: 57
Antigüedad: 16 años, 7 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
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 23:12.