Testing a catalog
Posted: Tue Feb 01, 2022 3:03 pm
Because the catalog is not working well I needed to use absolute address in my project. but now I try to understand how catalog works with Oxygen Xml Editor so I've created a very simple example but it doens't work and I try to know why, so I explain my test
the root of the xml file is:
<?xml version="1.0" encoding="utf-8"?>
<perros xmlns="http://www.animales/domesticos/europa">
<perro raza="collie" chip="01">sam</perro>
<perro raza="chihahua" chip="02">lazy</perro>
<perro raza="fox-terrier" chip="03">fenguy</perro>
<perro raza="coker spaniel" chip="04">laika</perro>
</perros>
the catalog includes
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
"http://www.oasis-open.org/committees/en ... atalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public">
<rewriteURI uriStartString="http://www.animales/domesticos/europa" rewritePrefix="C:/Trabajo/Historico/Prueba_Catalogos" />
</catalog>
and the XSL file includes
<xsl:variable name="rutaDocumentoEntrada" select="concat('http://www.animales/domesticos/europa', '/perros', '.xml')" />
I try that the variable rutaDocumentoEntrada takes the file from the ubication of the xml File (c:\Trabajo) the same directory where the catalog is.
I Look for the result C:/Trabajo/Historico/Prueba_Catalogos\Perros.xml
but the result is always http://www.animales/domesticos/europa/perros.xml' (so the catalog doesn't work)
Could you please tell me where is my fail
Best Regards
the root of the xml file is:
<?xml version="1.0" encoding="utf-8"?>
<perros xmlns="http://www.animales/domesticos/europa">
<perro raza="collie" chip="01">sam</perro>
<perro raza="chihahua" chip="02">lazy</perro>
<perro raza="fox-terrier" chip="03">fenguy</perro>
<perro raza="coker spaniel" chip="04">laika</perro>
</perros>
the catalog includes
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
"http://www.oasis-open.org/committees/en ... atalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public">
<rewriteURI uriStartString="http://www.animales/domesticos/europa" rewritePrefix="C:/Trabajo/Historico/Prueba_Catalogos" />
</catalog>
and the XSL file includes
<xsl:variable name="rutaDocumentoEntrada" select="concat('http://www.animales/domesticos/europa', '/perros', '.xml')" />
I try that the variable rutaDocumentoEntrada takes the file from the ubication of the xml File (c:\Trabajo) the same directory where the catalog is.
I Look for the result C:/Trabajo/Historico/Prueba_Catalogos\Perros.xml
but the result is always http://www.animales/domesticos/europa/perros.xml' (so the catalog doesn't work)
Could you please tell me where is my fail
Best Regards