[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Betr.: Re: [Qexo-general] nested document error using xquery - my soluti
From: |
heiko |
Subject: |
Betr.: Re: [Qexo-general] nested document error using xquery - my solution (add on) |
Date: |
Tue, 01 Apr 2003 01:01:24 -0800 (PST) |
off course i forgot to admit that my filename
has the length of seven letters, but with a little
scripting it should be possible to get a solution
with different filename length.
Heiko
>
> Hi all,
>
> i found the error on my own.
> still the reason why this works, or what i configured
> wrong is still unclear for me.
>
> calling the "xxxx.xml" wasn't enough. i had also
> declare the "url" to the filename as full path
>
> so here is the script where i call a document (xml)
> depending on the request url.
>
> define function path-Of-Request ($field) {
> invoke($request,$field)
> }
> define function create-filename () {
> let $path := path-Of-Request("getRequestURI"),
> $filename-start := substring($path, 2, 7),
> $url-name := "<a
href="http://mail.specht.com/jump/http://localhost:8080/"">http://localhost:8080/"</a>;,
> $prefix-path := concat ($url-name, $filename-start),
> $filename := concat($prefix-path, ".xml")
> return $filename
> }
> define function make-table ($filename) {
> <html>
> {
> let $newline := "
> "
> let $book := document($filename)/book
> for $ch in $book/chapter
> for $ti in $ch/title return
> (<h2>{children($ti)}</h2>, $newline)
> }
> </html>
> }
> let $filename := create-filename()
> return (make-table($filename))
>
> kind regards
>
> Heiko
>
>
> _______________________________________________
> Qexo-general mailing list
> address@hidden
> <a
href="http://mail.specht.com/jump/http://mail.gnu.org/mailman/listinfo/qexo-general">http://mail.gnu.org/mailman/listinfo/qexo-general</a>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Betr.: Re: [Qexo-general] nested document error using xquery - my solution (add on),
heiko <=