Problem in test project with Catalog
Posted: Mon May 21, 2018 11:49 am
Hi everybody, with my short experience with Oasis Catalogs I have just created a really simple test in order to understand it's way of working, but inspite of the simplicity it doesn't work and I don't get why, being so simple, could you please have a look, sure tahat you find the reason:
the test start with an initial xls file called iniciador.xsl whic calls two external functions in other xsl files, the first file is imported to the project, and the second is accesde by a http Uri which the Catalog must solve to a file Uri, it's code is the following:
- the Oasys Catalog is
- And the referenced file by the Uri is
And I receive the error: SystemID: C:\TRABAJO\Prueba_completa_XLS\Iniciador.xsl
Severity: fatal
Description: Cannot find a matching 1-argument function named {http://www.pepito.es/remoto/Otracarpeta ... lveImporte()
Start location: 13:0
In my understanding the Catalog should convert the uri --> http://www.pepito.es/remoto/Otracarpeta/Segundo.xsl in file:///C:/Trabajo/Prueba_completa_XLS/Otracarpeta/Segundo.xsl" which is the correct location, but it doesn't convert anything and try using the http Uri Why? could you please have a look.
Best Regards
the test start with an initial xls file called iniciador.xsl whic calls two external functions in other xsl files, the first file is imported to the project, and the second is accesde by a http Uri which the Catalog must solve to a file Uri, it's code is the following:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
xmlns:xs ="http://www.w3.org/2001/XMLSchema"
xmlns:fart="http://www.pepito.es/remoto/Otracarpeta/Segundo/xsl"
xmlns:faux="http://www.tico.com/acceso_llamador">
<xsl:import href="llamador.xsl" />
<xsl:output method="xml" indent="yes"/>
<xsl:variable name="Datos_llamador" select="faux:dato_llamada('1')" />
<xsl:variable name="Datos_Segundo" select="fart:devuelveImporte('Euro')" />
<xsl:template match="/">
<xsl:value-of select="$Datos_llamador" />
<xsl:value-of select="$Datos_Segundo" />
</xsl:template>
</xsl:stylesheet>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.1//EN" "http://www.oasis-open.org/committees/entity/release/1.1/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<rewriteURI uriStartString="http://www.tico.com/acceso_llamador"
rewritePrefix="file:///C:/Trabajo/Prueba_completa_XLS/llamador.xsl"/>
<rewriteURI uriStartString="http://www.pepito.es/remoto"
rewritePrefix="file:///C:/Trabajo/Prueba_completa_XLS"/>
</catalog>
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
xmlns:xs ="http://www.w3.org/2001/XMLSchema"
xmlns:fart="http://www.pepito.es/remoto/Otracarpeta/Segundo/xsl"
xmlns:faux="http://www.tico.com/acceso_llamador">
<xsl:function name="fart:devuelveImporte">
<xsl:param name="divisa" as="xs:string" />
<xsl:sequence select="4500" />
</xsl:function>
</xsl:stylesheet>
Severity: fatal
Description: Cannot find a matching 1-argument function named {http://www.pepito.es/remoto/Otracarpeta ... lveImporte()
Start location: 13:0
In my understanding the Catalog should convert the uri --> http://www.pepito.es/remoto/Otracarpeta/Segundo.xsl in file:///C:/Trabajo/Prueba_completa_XLS/Otracarpeta/Segundo.xsl" which is the correct location, but it doesn't convert anything and try using the http Uri Why? could you please have a look.
Best Regards