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

"Schnitzer, Jeff" <[email protected]>
Newsgroups gmane.comp.web.maverick.general
Message-ID <[email protected]>
Hmmmmm.  Why not create a Filter to do that?  It seems more natural than
trying to use Maverick.

Jeff

> -----Original Message-----
> From: Jonas Van Poucke [mailto:[email protected]]
> Sent: Monday, February 24, 2003 8:19 AM
> To: [email protected]
> Subject: [Mav-user] Newbie: Default transforming *.html/*.jsp or
whatever
> 
> 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]


-------------------------------------------------------
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.