Conditionals & paths

Mustafa Aydin

Usenet Archive
Joined
Nov 18, 2003
Messages
7
Reaction score
0
Hello NG,
just another question :))

I try a workaround for my problem with the resin directories (see Resin&WAR&XML)

My HP exists in 3 languages. Because the layout shall be language independent, I don't want to maintain 3 copies of the XSL-files. Therefore I'll give the "layouter" the file with the table of contents as argument so it can build it into the pages.

Locally all works fine but on the server of my provider resin does not find my XSL-files apart from "default.xsl". The directory tree looks like this

<root>
index.html (Startseite)
xsl/
seite.xls This file resin doesn't find (relativ) toc.xls This file resin doesn't find (relativ) toc.de.xml German TOC toc.en.xml English TOC toc.tr.xml Turkish TOC deutsch/ index.xtp Entry page default.xsl This file resin finds englisch/ index.xtp Entry page default.xsl This file resin finds ... ...
...

As workaround on the Server I'll use the absolute URLs
of the files so it works at all. Locally I'd like to use the relative paths because I do not have to stay in the net all the time. But if I now try to "call" the URLs controlled by a variable "local" resin gives me the following error

"default.xsl:1: <xsl:choose> is not allowed in the top level."

<xsl:variable name="local" select="ja"/>

<xsl:choose>
<xsl:when test="$local=ja">
<xsl:variable name="toc" select="'../../xsl/toc.de.xml'"/> <xsl:include href='../../xsl/seite.xsl'/> <xsl:include href='../../xsl/toc.xsl'/> </xsl:when> <xsl:eek:therwise> <xsl:variable name="toc" select="'http://www.weltgebetsuhr.de/wgb/xsl/toc.de.xml'"/> <xsl:include href='http://www.weltgebetsuhr.de/wgb/xsl/seite1.xsl'/> <xsl:include href='http://www.weltgebetsuhr.de/wgb/xsl/toc.xsl'/> </xsl:eek:therwise> </xsl:choose>

If anyone has any idea to solve this I'd be appreciated. Slow but sure I get mad about this stuff :))

Bye
Mustafa
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,042
Messages
3,104,224
Members
248,132
Latest member
henrywalsh

Latest Threads

Top