Newbie: Default transforming *.html/*.jsp or whatever

"Jonas Van Poucke" <[email protected]>
Newsgroups gmane.comp.web.maverick.general
Organization Actonomy
Message-ID <000001c2dc20$687ecd80$07fea8c0@Zeus>
Hi,
I have a question on doing the following:
1. If a command exists in maverick, execute it
2. If it does not exist, e.g. for MyPage.html then do:
   a. Load theat page (DocumentView)
   b. perform any default transformation
      (e.g. like stripping out any attributes on some tag, using XSLT)
   c. Show the transformed document.

It seems that two things are missing:
1. Reading in any *.extension command
2. Views need a "path" attribute, but something like path="." (taking
the command as a path) does not work.

To summarize, I would need something like:
    <commands>
        <command name="*.html">
            <view name="success" type="document" path=".">
                <transform type="xslt" path="DoSomethingWithHTML.xsl"/>
            </view>
        </command>
    </commands>

Is there something to support this already? Do I need to create my own
View? Or modify DispathedViewFactory? Any help welcome!

Jonas Van Poucke
Actonomy




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.