Retroceder   Foros del Web > Programación para sitios web > XML

Respuesta
 
Herramientas Desplegado
Antiguo 26-mar-2008, 21:05   #1 (permalink)
ARAPSPGON ha deshabilitado el karma
 
Fecha de Ingreso: octubre-2007
Mensajes: 33
(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
ARAPSPGON está desconectado   Responder Citando
Respuesta
No hay votos aún.


Herramientas
Desplegado

Normas de Publicación
No puedes crear nuevos temas
No puedes responder temas
No puedes subir archivos adjuntos
No puedes editar tus mensajes

BB code is Activado
Caritas están Activado
[IMG] está Activado
Código HTML está Desactivado


La Zona horaria es GMT -6. Ahora son las 04:46.


Message Board Statistics

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93