Login 
 
 Pref   Your subscriptions   Home   Help 
users@ml.mod-xslt2.com
mod-xslt2 - Users Mailing List
   
 
List info
 
 
 
Subscribe
 
 
Unsubscribe
 
 
Archive
 
 
Post
 



Advanced search
2004 01 02 03 04 05 06 07 08 09 10 11 12
2005 01 02 03 04 05 06 07 08 09 10 11 12
2006 01 02 03 04 05 06 07 08 09 10 11 12
2007 01 02 03 04 05 06 07 08 09 10 11 12
2008 01 02 03 04 05 06 07 08 09 10 11 12
2010 01 02 03 04 05 06 07 08 09 10 11 12

  previous   Chronological            previous   Thread       

Can't use modxslt extensions Marc Franquesa
  • From: Marc Franquesa <marcf@xxxxxxxxxx>
  • To: users@xxxxxxxxxxxxxxxx
  • Subject: Can't use modxslt extensions
  • Date: Mon, 23 Oct 2006 11:48:42 +0200
  • Organization: IMA UdG
  • User-agent: Mozilla Thunderbird 1.5.0.7 (X11/20060909)


  • I compiled the last versions of modxslt, libxslt and libxml2 (all stable versions). I'm using Apache2.

    The code
    <xsl:value-of select="$modxslt-conf-extensions" />

    return 'true', so I have XSLT Extensions (value-of,header-set, ...) available

    But if I do a

    <xsl:if test="element-available('yslt:value-of')">

    I get 'FALSE',

    If I use directly <yslt:value-of select="$GET[view]" />, for example I get a server error (500) and in the apache logs appears this message:

    mod_xslt: runtime error: file /users/admi/marcf/Desktop/workspace/GGG/catalog.xslt line 32 element value-of
    mod_xslt: xsltApplyOneTemplate: failed to find extension value-of


    I have this declarations on the XSLT:

    extension-element-prefixes="yslt"
    xmlns:yslt="http://www.mod-xslt2.com/ns/1.0";


    This simple stylesheet fails:

    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet
    extension-element-prefixes="yslt"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
    xmlns:yslt="http://www.mod-xslt2.com/ns/1.0";
    version="1.0">

    <xsl:output method="html" indent="yes" />

    <xsl:template match="/">
    <html>
    <head>
    <title>mod_xslt Text</title>
    </head>
    <body>
    <yslt:value-of select="$GET[view]" />
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>

    --
    -------------------------------------------
    Marc Franquesa SegalÃs - TÃcnic de Sistemes
    e-mail: marcf@xxxxxxxxxx
    Despatx 244. Tel: +34 972 418418
    Universitat de Girona
    Dpt. InformÃtica i MatemÃtica Aplicada
    Campus Montilivi 17003 - Girona (Spain)
    -------------------------------------------


      Powered by Sympa