Re: BXE und XSLT

Christian Stocker <[email protected]> Sun, 12 Sep 2004 12:23:30 +0200
Newsgroups gmane.editors.bitflux.general
Message-ID <[email protected]>
Hi

On 9.9.2004 17:27 Uhr, Patrick Kollitsch wrote:

 > Hallo Christian (ich hoffe mal, die Mail kommt an der richtigen Stelle
 > an ;),

Please please ask questions about the Editor on the mailinglists. We 
can't provide private support for free and maybe someone else can learn 
from your questions or even better has the answers...

Even as Patrick asked his questions in German, I'll answer in English 
without translating his questions. I hope, it doesn't lead to to much 
confusion.

> ich habe mich in den letzten Wochen mit dem Bitflux-Editor beschäftigen 
> dürfen, weil hier bei Akademie.de angedacht ist, ihn als Editor für das 
> Redaktionstool zu verwenden.
> 
> Das Problem ist, dass wir nicht mit X(HT)ML arbeiten sondern eine eigene 
> Markupsprache nutzen (hab ich schonmal in der UserMailingListe 
> beschrieben). Wenn ich die verschiedenen Dokus nun recht verstehe, 
> sollte es möglich sein, unser Markup im Editor zu laden und per XSLT 
> live in XHTML umzuwandeln.

Translating your XML to HTML *on the browser* is just implemented very 
primitively currently.

Better XSLT support is scheduled for the end of year with the releasse 
of BXE 1.1.

> 
> Ich wollte nur kurz nachfragen, ob ich das richtig verstanden habe oder 
> auf dem Holzweg bin, denn meine zwei Versionen, die ich bisher erstellt 
> habe funktionieren beide nicht, entweder der Editor wird nicht geladen 
> (XML-Version, liegt wahrscheinlich daran, dass aus XML heraus Javascript 
> nicht funktioniert oder der Aufruf falsch ist) oder er lädt und bleibt 
> im Ladebildschirm ohne Fehlermeldung stehen (eine Version ähnlich dem 
> inlineXHTML-Beispiel).

The only tested and certainly working solution for you, is to transform 
your XML on the server side to HTML and put in the correct bxe_xpath 
attributes like described in 
http://wiki.bitfluxeditor.org/LoadingLayout. The University of Zurich 
uses the second approach ("External XHTML"), the inline example the 
first ("Inline HTML"). The "inline" example uses an XML which doesn't 
contain any XHTML markup and works quite good.

I highly recommend you, to try to use one of those approaches

> Leider kommt auch keine Fehlermeldung wo das Problem liegt, ob an der 
> DTD (die ist recht freizügig geschrieben und sollte keine Probleme 
> machen), dem RelaxNG (das lass ich mit trang erstellen) oder der 
> Implementierung liegt.

DTD? There's no DTD Support in BXE ;)
RelaxNG doesn't seem to be the problem here, as you don't come to the 
stage, where it would be loaded and validated.

> Gibt es irgendwelche Erfahrungen was dem Editor fehlt, wenn er beim 
> Laden abstirbt? Oder ist mein Ansatz mit der Live-Transformation der 
> falsche?

Yep, your "Ansatz" is a dead end currently. Don't translate the XML on 
the browser, but do it on the server. We do it that way, the uni does it 
that way and others as well. If you really need it done on the browser 
side, you have to wait until end of the year or help out with 
implementing it ;)


> (By the way, Hast du schon mal gemerkt, dass die Mozillas includes in 
> der zweiten Ebene cachen, auch wenn der Cache ausgeschaltet ist? Ich 
> habe ein XSLT-Stylesheet, dass ich per config.xml lade und eines, das 
> von diesem Stylesheet includiert wird. Das letztere hängt immer im Cache 
> fest. Gibts da Lösungen/Ansätze?)

Caching is always a big pain. Just Reload the Page with "Shift+Reload" 
and if that doesn't help, clear the cache... It's annoying and I don't 
know a real solution, either, but with "shift+reload" it works in most 
cases.

In Mozilla, you can have the Preferences always opened (it's not modal), 
so deleting the cache isn't "click hell", if you have the Preferences 
Box just in a corner all the time.
There's also the "Web DEveloper Tools" (an extension), which puts "Clear 
Cache" Menu entry to Mozilla/Firefox (where the Preference Dialog is 
modal...) and makes clearing the cache a 2 click issue ;)

> Im reinen XHTML-Betrieb ist der Editor einsame Spitze,

thanks.

Have a nice day and if you have further questions, just ask

chregu
> 
> Viele Grüße
> Patrick
> 
> -- 
> Patrick Kollitsch
> Entwicklung - akademie.de asp GmbH
> Erkelenzdamm 59-61 - D-10999 Berlin
> Tel:+49.(0)30.61655-0 Fax: +49.(0)30.61655-120
> http://www.akademie.de

-- 
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60  | fax +41 1 240 56 71
http://www.bitflux.ch  |  [email protected]  |  gnupg-keyid 0x5CE1DECB
-- 
bx-editor-users mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-users