Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Problems with namespace Problems with namespaceTo: NULL Date: 5/27/2009 2:54:00 AM Hi all, In my xml file if delete this xsi:schemaLocation="http://www.reale.es/monitorizacionb2b/ejemplo1 Polizas.xsd" xmlns="http://www.reale.es/monitorizacionb2b/ejemplo1" all is right when apply XSL. I have this xml file: <?xml version="1.0" encoding="UTF-8"?> <!--Sample XML file generated by XMLSpy v2007 (http://www.altova.com)--> <?xml-stylesheet type="text/xsl" href="polizas.xsl"?> <POLIZAS xsi:schemaLocation="http://www.reale.es/monitorizacionb2b/ejemplo1 Polizas.xsd" xmlns="http://www.reale.es/monitorizacionb2b/ejemplo1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ID_MEDIADOR>11</ID_MEDIADOR> <NOMBRE_MEDIADOR>MEDIADOR A</NOMBRE_MEDIADOR> <POLIZA> <ID_POLIZA>101</ID_POLIZA> <ID_TOMADOR>1001</ID_TOMADOR> <NOMBRE_TOMADOR>TOMADOR A</NOMBRE_TOMADOR> <RIESGO_AUTO> <MARCA>SEAT</MARCA> <PATENTE>12</PATENTE> </RIESGO_AUTO> </POLIZA> <POLIZA> <ID_POLIZA>103</ID_POLIZA> <ID_TOMADOR>1003</ID_TOMADOR> <NOMBRE_TOMADOR>TOMADOR C</NOMBRE_TOMADOR> <RIESGO_AUTO> <MARCA>FIAT</MARCA> <PATENTE>1234</PATENTE> </RIESGO_AUTO> </POLIZA> </POLIZAS> And this XSL: <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns="http://www.reale.es/monitorizacionb2b/ejemplo1" > <xsl:output method="html"/> <xsl:template match="POLIZAS"> <html> <body> <h1>Datos Principales</h1> <h4>Id Mediador: <xsl:value-of select="ID_MEDIADOR"/></h4> <h4>Nombre Mediador: <xsl:value-of select="NOMBRE_MEDIADOR"/></h4> <table border="1"> <caption>Pólizas</caption> <tr bgcolor="#9acd32"> <th>Id</th> <th>Id Tomador</th> <th>Nombre Tomador</th> <th>Riesgo Auto</th> </tr> <xsl:for-each select="POLIZA"> <tr> <td><xsl:value-of select="ID_POLIZA" /></td> <td><xsl:value-of select="ID_TOMADOR" /></td> <td><xsl:value-of select="NOMBRE_TOMADOR" /></td> <td><xsl:value-of select="RIESGO_AUTO/MARCA" /> - <xsl:value-of select="RIESGO_AUTO/PATENTE" /></td> </tr> </xsl:for-each> </table> </body> </html> </xsl:template> </xsl:stylesheet> If I delete this namespaces of XML file all is right. xsi:schemaLocation="http://www.reale.es/monitorizacionb2b/ejemplo1 Polizas.xsd" xmlns="http://www.reale.es/monitorizacionb2b/ejemplo1" Any help ?? Thanks in advanced, regards | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
