J
Jon Martin Solaas
For java programmers there exist a framework called Millstone
(www.millstone.org) for programming web user-interfaces in a component
oriented way. Millstone uses xslt transformations to render components
as html. I'm trying to modify millstone so that it can display a html
editor widget called HTMLArea instead of the usual html <textarea>
tag. But I need a little help with the xslt transformation. Especially
there is a construct, {wa:resource('script/htmlarea.js')} that makes a
relative path absolute within the web-application context. I use this
to reference a javascript file like this:
<script type="text/javascript"
src="{wa:resource('script/htmlarea.js')}"></script>
My problem is that when I use the wa:resource construct outside a tag
parameter it's ignored by the processor, so that I can't use a
relative path, and hence have to hardcode an application specific path
into the library, which is not what I want:
<script type="text/javascript">
_editor_url = "/PaddaWeb/AdminGUI/RES/default/script/";
//_editor_url = "{wa:resource('script/')}";
_editor_lang = "en";
</script>
What I'd like to do is to use wa:resource somehow inside the
javascript, like I've tried in the codeline that's commented out.
Obviously the syntax is not correct as the xslt-transformer just
ignores it. If someone know how to do this I'd be very grateful.
Jon Martin Solaas
jonmartin.solaas$hotmail.com
(www.millstone.org) for programming web user-interfaces in a component
oriented way. Millstone uses xslt transformations to render components
as html. I'm trying to modify millstone so that it can display a html
editor widget called HTMLArea instead of the usual html <textarea>
tag. But I need a little help with the xslt transformation. Especially
there is a construct, {wa:resource('script/htmlarea.js')} that makes a
relative path absolute within the web-application context. I use this
to reference a javascript file like this:
<script type="text/javascript"
src="{wa:resource('script/htmlarea.js')}"></script>
My problem is that when I use the wa:resource construct outside a tag
parameter it's ignored by the processor, so that I can't use a
relative path, and hence have to hardcode an application specific path
into the library, which is not what I want:
<script type="text/javascript">
_editor_url = "/PaddaWeb/AdminGUI/RES/default/script/";
//_editor_url = "{wa:resource('script/')}";
_editor_lang = "en";
</script>
What I'd like to do is to use wa:resource somehow inside the
javascript, like I've tried in the codeline that's commented out.
Obviously the syntax is not correct as the xslt-transformer just
ignores it. If someone know how to do this I'd be very grateful.
Jon Martin Solaas
jonmartin.solaas$hotmail.com