Hola a todos.
Tengo el siguiente XML
Código:
<?xml version="1.0" encoding='ISO-8859-1'?>
<?xml-stylesheet type="text/xsl" href="listarElementos.xsl"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="http://localhost:8083/oryx/emacmas_goals.xhtml#oryx-canvas123">
<type>http://b3mn.org/stencilset/emacmas#Diagram</type>
<mode>writable</mode>
<mode>fullscreen</mode>
</rdf:Description>
<rdf:Description rdf:about="http://localhost:8083/oryx/emacmas_goals.xhtml#oryx_4F9C2FCA-46F3-407C-8483-FC8DEDEAE245">
<type xmlns="http://oryx-editor.org/">http://b3mn.org/stencilset/emacmas#Subgoal</type>
<bounds xmlns="http://oryx-editor.org/">213,185.9998611400396,214.983335647666,305</bounds>
<dockers xmlns="http://oryx-editor.org/">213 305 50 80 # </dockers>
</rdf:Description>
</rdf:RDF>
y el siguiente XSL
Código:
<?xml version="1.0" encoding='ISO-8859-1'?>
<xsl:stylesheet version="1.0"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match='/'>
<html>
<head>
<title>Transformando a Oryx</title>
</head>
<body>
<h1>
Transformando a Oryx
</h1>
<xsl:for-each select='rdf:RDF/rdf:Description'>
Tipo:
<xsl:value-of select='type' />
<br/>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Cuando hago la transformación obtengo el siguiente resultado
Transformando a Oryx
Tipo: http://b3mn.org/stencilset/emacmas#Diagram
Tipo:
La pregunta es: ¿por qué en el primer bloque de
rdf:Description el elemento
type lo transforma bien, y en el segundo caso, cuando tiene el atributo
xmlns="http://oryx-editor.org/" no lo hace?
Agradezco sus cometarios.