Hi JP,

maybe try the xsl with the java first in a seperate pipeline, before putting it into the pre or postprocessing. I think something else is wrong, which is causing this problem.

Regards,

Jeroen

[EMAIL PROTECTED] wrote:
Hi there,

I ve got a problem with a preprocessing xsl i try to call a java class but it doesn t work and i ve got a blank page in my backend template

here s the code
<?xml version="1.0" encoding="UTF-8"?>
<!--
    Copyright 2001-2007 Hippo (www.hippo.nl)
Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; xmlns:D="DAV:"
    xmlns:cms="http://hippo.nl/cms/1.0";
    xmlns:S="http://jakarta.apache.org/slide/";
    xmlns:webdav="http://hippo.nl/webdav/1.0";
    xmlns:java="http://xml.apache.org/xalan/java";
    >
<xsl:template match="/">
        <xsl:apply-templates select="*"/>
    </xsl:template>
<xsl:template match="modif_date"> <modif_date> <xsl:variable name="sourcePattern">EEE, d MMM yyyy HH:mm:ss Z</xsl:variable> <xsl:variable name="targetPattern">yyyy-MM-dd'T'HH:mm:ss'Z'</xsl:variable> <xsl:value-of select="java:nl.hippo.util.DateHelper.reformatDate(string(D:propstat/D:prop/D:getlastmodified), $sourcePattern, $targetPattern)"/>
       </modif_date>
    </xsl:template>
<xsl:template match="@*|node()">
        <xsl:copy>
            <xsl:apply-templates select="@*|node()" />
        </xsl:copy>
    </xsl:template>
</xsl:stylesheet>


if i replace this line <xsl:value-of select="java:nl.hippo.util.DateHelper.reformatDate(string(D:propstat/D:prop/D:getlastmodified), $sourcePattern, $targetPattern)"/>

by "hello"

the backend template is correctly loaded and i ve got hello in the textfield So any idea ??? Thanks a lot --------------------------------------------------------------------------------
Nicolas MANGON
Smals -  TO&P - F. Manini - Web Content Management
[EMAIL PROTECTED] CH-117 - 02 / 787 5291 -------------------------------------------------------------------------------

______________________________________________________________________________________________
Smals sluit elke aansprakelijkheid uit in verband met de juistheid, de volledigheid of het tijdig toekomen van de informatie in deze e-mail. Aan deze e-mail kunnen geen rechten worden ontleend en deze e-mail houdt in geen geval een erkenning van welkdanige aansprakelijkheid in. Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en het bericht te vernietigen.

Smals décline toute responsabilité quant à l'exactitude, à l'exhaustivité et au délai de transmission des informations contenues dans cet e-mail. Aucun droit ne peut être revendiqué sur cet e-mail et cet e-mail n'implique en aucun cas une reconnaissance de responsabilité, quelle qu'elle soit. Ce message s'adresse uniquement au destinataire. Si ce message ne vous est pas destiné, nous vous prions de nous le signaler immédiatement et de détruire le message. ********************************************
Hippocms-dev: Hippo CMS development public mailinglist

--
Met vriendelijke groet,
Kind regards,

Jeroen Reijn

Hippo

Oosteinde 11
1017WT Amsterdam
The Netherlands
Tel  +31 (0)20 5224466

********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to