Hello Hussein,

This is our custom_docbook5.xslt:

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"; xmlns:h="http://www.w3.org/1999/xhtml";
xmlns:m="http://www.w3.org/1998/Math/MathML"; xmlns="
http://docbook.org/ns/docbook"; exclude-result-prefixes="h m">


    <xsl:import href="w2x:xslt/docbook5.xslt" />


    <!-- Include XSLT that will surround special phrases in <phrase> tags
-->

    <xsl:include href="wordmangling2.xslt" />


    <!-- Include XSLT that will "massage" the resulting XML even further -->

    <xsl:include href="
https://fuentes.calenco.com:9003/workspaces/POC/content/soc-gen-import-massaging.xsl";
/>

    <!-- -->



    <!-- Preserve text styles. Here we treat titles (2col, paysage, etc.)
-->

    <xsl:template match="h:div[starts-with(@class,
'role-section')]/h:h1[@class] | h:div[starts-with(@class,
'role-section')]/h:h2[@class] | h:div[starts-with(@class,
'role-section')]/h:h3[@class] | h:div[starts-with(@class,
'role-section')]/h:h4[@class] | h:div[starts-with(@class,
'role-section')]/h:h5[@class] | h:div[starts-with(@class,
'role-section')]/h:h6[@class]">

        <title>

            <xsl:attribute name="role">

                <xsl:value-of select="concat('sg-', @class)" />

            </xsl:attribute>

            <xsl:call-template name="processCommonAttributes" />

            <xsl:apply-templates/>

        </title>

    </xsl:template>


    <xsl:template match="h:p[@class]">

        <para>

            <xsl:attribute name="role">

                <xsl:value-of select="concat('sg-', @class)" />

            </xsl:attribute>

            <xsl:call-template name="processCommonAttributes" />

            <xsl:apply-templates/>

        </para>

    </xsl:template>

</xsl:stylesheet>

That file is stored inside the xslt/ folder of the servlet and the servlet
code has been modified to use the proper authentication mechanisms to be
able to connect to https://fuentes...

The wordmangling2.xslt (also stored inside the xslt/ folder of the servlet)
is also requesting a file in https://fuentes... by means of a parameter
definition which loads the file:

<xsl:param name="replacementsFileURI" select="'
https://fuentes.calenco.com:9003/workspaces/POC/content/replacements-SocGen.xml'"
/>

Now, on the server (https://fuentes....) log I do see the successful (HTTP
200) request for the replacements-SocGen.xml file, but I do not see any
request (successful or otherwise) for the soc-gen-import-massaging.xsl file.

What am I missing? Does w2x customization support including, or importing,
an XSL file from a remote system? Is there an option to pass w2x (servlet)
to enable this behavior?

I hope I was clear, waiting for your answer...

Kind regards.

-- 
Fabián Mandelbaum
IS Engineer
--
XMLmind Word To XML Support List
w2x-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/w2x-support

Reply via email to