raptor wrote:
> >
> > But, if you really want pre processing & post
> > processing, we need something new, since the current
> > XMLSubs model just handles post processing.
> ]- isn't the XMLSubs replace the tag with function-call before executing the
> ASP code... ?!!

What I mean by post processing is for a tag like this

<my:tag> 
  some HTML
  <% # ASP code block %>
</my:tag>

The &my::tag() sub executes after the contained HTML & ASP 
do, so that its $HTML in $_[1] is static output from the 
wrapped ASP/HTML.  You don't get any function executing
as a preprocessor when the tag begins.

> <my:func/>  become <% func() %> ... and then when the time comes it is
> executed..

This is what happens, yes.

> >
> > sub XMLTab_OnEnd {} ...
> ]- Aha U mean XMLSubs happens at runtime not at compile time !?
> 

Yes, a compile time type of XMLSubs would be able to do neat
tricks by inserting ASP logic into the script.

> > Rather, then go and build something that noone will use
> > though, let us try to focus this conversation on what
> > you are trying to do exactly...
> ]- Not very-clear idea yet :")... but I want first to try to remake my home
> page with XMLSubs instead of AxKit... 'cause it is not worth it at the
> moment to do full-blown AxKit.-installation... And that's why XMLSubs is the
> right tool to use..
> 

I would suggest looking also at using XML::Simple for some
easy XML parsing.  I have used it a couple times, and its
really great.

Also, the 2.21 Apache::ASP just released has a really mature 
XSLT implementation if you want to go that route.

> ]- let me experiment a litle bit... and when I have a better idea i will
> post again... but I generally think the for such "light-wave" tasks it the
> perfect solution....

> One other thing for which I would like to use it is to separate the design
> from logic (the-template-way)... and this seems like a good way to do it...
> /but if it is handled at compile-time, how it will be possible to pass info
> from ASP script to this virtual-XML-template-system if it executed before
> it.. may-be callbacks?! /

A compile time deal would just be able to add ASP code to the script
instead of dealing with things at runtime.  I don't know if it would
be useful for what you are doing, I was just going off on what ifs.

> i.e.
> ASP-object-model + logic-design separation + XML, XSLT transformation.
> 

Cool, my OSS conference presentation showed ASP use for things just
like this with the XMLSubs, email me if you want the slides in PDF,
which I'll likely post online at some point.

Later,

Josh
_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to