|
Ha, I see, did you read the javadocs?
It states:
<snip>
Transformer implementation of the JPath XSP tag
library.
</snip>
But the jpath transformer doesn't support every tag
yet.
Anyways you're better off using the xsp
logicsheet.
I also think you misinterpreted the jpath
transformer. (what follows is what I think it does!) It doesn't take a template
file and transform an xml like xslt. It does let you include variables comming
from a flow. (it does not have a src attribute) In a flow you may pass beans and
stuff and with jpath you can traverse that bean to show it on a page. Just take
a look at the docpage I gave you.
Am I making any sense? Or is my head so fuzzy I
that I'm running way off.
Kind Regards,
Jan
----- Original Message -----
Sent: Friday, April 23, 2004 11:11
AM
Subject: Re: jpath transformer
Jan, the transformer I mentioned is:
<map:transformer
logger="sitemap.transformer.jpath" name="jpath"
src=""/>
Peter/color> On
23 Apr 2004, at 07:14, Jan Hoskens wrote:
I've not yet heard of a
jpath transformer, where did you find it? I do know that there's an xsp
logicsheet "jpath" that you may use, especially
for/smaller>/fontfamily> use
with flow. There's another transformer which does jpath/jexl stuff, but
that's the JXTemplateTransformer./smaller>/fontfamily> http://cocoon.apache.org/2.1/userdocs/flow/jpath.html/smaller>/color>/fontfamily> http://cocoon.apache.org/2.1/userdocs/flow/jxtemplate.html/smaller>/color>/fontfamily> Kind
Regards,/smaller>/fontfamily> Jan/smaller>/fontfamily> -----
Original Message -----/x-tad-bigger>/fontfamily> /x-tad-bigger>From:/x-tad-bigger>
/x-tad-bigger>beyaNet
Consultancy/x-tad-bigger>/color> /x-tad-bigger>/fontfamily> To:/x-tad-bigger>/fontfamily>
/x-tad-bigger>[EMAIL PROTECTED]/x-tad-bigger>/color>
/x-tad-bigger>/fontfamily> Sent:/x-tad-bigger>/fontfamily>
Thursday, April 22, 2004 2:22 PM/x-tad-bigger>/fontfamily> Subject:/x-tad-bigger>/fontfamily>
jpath transformer/x-tad-bigger>/fontfamily>
Hi, could someone
please inform me as to the correct usage of the jpath transformer. Can I use
it as I would an xslt transformer and and declare a *.jpath file, which like
its xsl counterpart, would handle styling issues? For example, could I do
the following:
<map:match
pattern="frame/*/*/*"> <map:generate type="serverpages"
src=""> <map:parameter name="artistID"
value="{3}"/> </map:generate> <map:transform
type="jpath" src=""serialize"/> </map:match>
If so,
does anyone have examples of a jpath transformation file I could have a look
at? And if you can declare an jpath transformation file, how can I get
objects and variables from my flowscript into
it?
Peter
|