Re: sitemap

Thomas Baumann <[email protected]> Sun, 17 Jul 2005 20:34:58 +0200
Newsgroups gmane.comp.cms.bitflux.general.german
Message-ID <[email protected]>
Leider bin ich mit dem Anhaltspunkt nur wenig weitergekommen:

Jetzt kommt beim Aufruf der /sitemap/ folgender Fehler:
 Message: XSLT Error in /home/tirili/public_html/themes//tirili/sitemap.x=
sl

Code: 0

userInfo:
xsltExtFunctionTest: PHP Object did not register PHP functions
xmlXPathCompiledEval: evaluation failed
runtime error: file /home/tirili/public_html/themes/tirili/master.xsl lin=
e 21
element variable
Evaluating global variable being computed ... failed
xsltExtFunctionTest: PHP Object did not register PHP functions
xmlXPathCompiledEval: evaluation failed
runtime error: file /home/tirili/public_html/themes/tirili/master.xsl lin=
e 25
element param
Evaluating global variable being computed ... failed
xsltExtFunctionTest: PHP Object did not register PHP functions
xmlXPathCompiledEval: evaluation failed
runtime error: file /home/tirili/public_html/themes/tirili/master.xsl lin=
e 27
element variable
Evaluating global variable being computed ... failed
xsltExtFunctionTest: PHP Object did not register PHP functions
xmlXPathCompiledEval: evaluation failed
runtime error: file /home/tirili/public_html/themes/tirili/master.xsl lin=
e 24
element param
Evaluating global variable being computed ... failed
xsltExtFunctionTest: PHP Object did not register PHP functions
xmlXPathCompiledEval: evaluation failed
runtime error: file /home/tirili/public_html/themes/tirili/master.xsl lin=
e 22
element variable
Evaluating global variable being computed ... failed
xsltExtFunctionTest: PHP Object did not register PHP functions
xmlXPathCompiledEval: evaluation failed
runtime error: file /home/tirili/public_html/themes/tirili/master.xsl lin=
e 23
element variable
Evaluating global variable being computed ... failed

In File /home/tirili/public_html/inc/popoon/components/transformers/xslt.=
php
Line 101

Hier ist meine .configxml

<?xml version=3D"1.0"?>
 <bxcms xmlns=3D"http://bitflux.org/config">
     <plugins>
	<parameter name=3D"xslt" type=3D"pipeline" value=3D"sitemap.xsl"/>
         <plugin type=3D"sitemap" admin=3D"false"></plugin>
         <plugin type=3D"navitree"></plugin>
     </plugins>
</bxcms>

Hier ist meine sitemap.xsl:

<?xml version=3D"1.0"?>
<xsl:stylesheet version=3D"1.0" xmlns:xsl=3D"http://www.w3.org/1999/XSL/T=
ransform"
xmlns:xhtml=3D"http://www.w3.org/1999/xhtml" xmlns=3D"http://www.w3.org/1=
999/xhtml"
exclude-result-prefixes=3D"xhtml">
    <xsl:import href=3D"master.xsl"/>
    <xsl:import href=3D"../standard/common.xsl"/>

    <xsl:output encoding=3D"utf-8" method=3D"xml"
doctype-system=3D"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd=
"
doctype-public=3D"-//W3C//DTD XHTML 1.0 Transitional//EN"/>

    <xsl:template>
        <p>
<xsl:apply-templates select=3D"$sitemapPlugin/sitemap/collection[display-=
order and
display-order > 0]" mode=3D"sitemap">
            <xsl:sort select=3D"display-order" order=3D"ascending"/>
            <xsl:with-param name=3D"level" select=3D"'1'"/>
        </xsl:apply-templates>
        <xsl:apply-templates
select=3D"$sitemapPlugin/sitemap/collection[not(display-order) and
not(@uri=3D'/intro/')]" mode=3D"sitemap">
            <xsl:with-param name=3D"level" select=3D"'1'"/>
        </xsl:apply-templates>
       </p>
    </xsl:template>

    <xsl:template match=3D"collection" mode=3D"sitemap">
        <xsl:param name=3D"level" select=3D"level"/>
        <a href=3D"{concat($webrootLangW,@uri)}">
            <span>
            <xsl:attribute name=3D"class">
                <xsl:value-of select=3D"concat('listlevel',$level)"/>
            </xsl:attribute>
            <xsl:value-of select=3D"display-name"
disable-output-escaping=3D"yes"/>
            </span>
        </a>
        <xsl:if test=3D"current()/collection">
            <xsl:apply-templates
select=3D"current()/collection[display-order  and display-order > 0 ]"
mode=3D"sitemap">
                <xsl:sort select=3D"display-order" order=3D"ascending"/>
                <xsl:with-param name=3D"level" select=3D"($level + 1)"/>
            </xsl:apply-templates>
            <xsl:apply-templates
select=3D"current()/collection[not(display-order)]" mode=3D"sitemap">
                <xsl:with-param name=3D"level" select=3D"($level + 1)"/>
            </xsl:apply-templates>
        </xsl:if>
    </xsl:template>

</xsl:stylesheet>

Danke f=FCr Eure Hilfe im voraus.

Liebe Gr=FC=DFe

T. Baumann

--=20
Thomas Baumann=20
Dipl.-Betriebswirt (BA)

tiri.li information technology
Postfach 11 01 15
D-64216 Darmstadt
fon +49 (0) 7000 - 66 464 66
fax +49 (0) 70000 - 329 329
http://www.tiri.li

This email and any attachments are confidential and are=20
intended only for the addressee. If you are not the=20
intended recipient of this email and have received it=20
in error, please notify the sender immediately by reply=20
email and then delete it from your system.=20



-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/