Thinlet

2004-04-11 Thread Yves Vindevogel
Anybody who ever worked with thinlets (www.thinlet.com)?  Seems interesting.
Any experiences ?


Met vriendelijke groeten,
Bien à vous,
Kind regards,

Yves Vindevogel
Implements

Mail: [EMAIL PROTECTED]  - Mobile: +32 (478) 80 82 91

Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76
Markt 18c  -  9700 Oudenaarde  -  Tel: +32 (55) 30 55 76

Web: http://www.implements.be
x-tad-smaller
First they ignore you.  Then they laugh at you.  Then they fight you.  Then you win.
Mahatma Ghandi./x-tad-smaller

Dynamic action type?

2004-04-11 Thread Oscar Picasso
When using a file generator you can dynamically set the source by writing
something like that:

map:match pattern=*
  map:generate src=docs/{1}/
  ...
/map:match


But if you try to do something like:

map:match pattern=*
  map:act type={1}/
  ...
/map:match

It doesn't seem to work.

Does it mean that we cannot dynamically set the action type in the sitemap like
we do with a generator source.

Thanks.

Oscar


__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

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



Help with fb:multi-value/ binding - CFORMS

2004-04-11 Thread Uchenna Igwebuike








Does anyone have an example on how to bind
data from and to a bean using an ArrayList field to
store multivalue data from a form














xsl:sort in 2.1.4 not working

2004-04-11 Thread Rick Tyler
I just installed Cocoon 2.1.4 under Windows 2000 and am trying to do a trivial sort, 
but regardless of what I do, the output appears in the same (apparently random) order. 
 Why?!

XML:

items
 item
  nameitem 1/name
  colorred/color
  shapesquare/shape
 /item item
  nameitem 2/name
  colorgreen/color
  shapetriangle/shape
 /item item
  nameitem 3/name
  colorblue/color
  shapecircle/shape
 /item
/items

XSL:

xsl:template match=items
 xsl:apply-templates
  xsl:sort select=item/color
 /xsl:apply-templates
/xsl:template

xsl:template match=item
 xsl:value-of select=name/
/xsl:template

The problem is: it doesn't matter what expression I use in the xsl:sort statement 
(item/color or item/name or item/shape) because the output never changes.  This 
implies to me that the xsl:sort statement is being ignored for some reason.  Is it 
possibility that I messed up the configuration of Cocoon such that some features of 
XSL work and other don't?  I am baffled because this seems like such basic 
functionality.

What am I doing wrong?!

Thank you in advance.

Rick Tyler

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



Re: xsl:sort in 2.1.4 not working

2004-04-11 Thread Joerg Heinicke
On 11.04.2004 21:01, Rick Tyler wrote:

I just installed Cocoon 2.1.4 under Windows 2000 and am trying to do a trivial sort, but regardless of what I do, the output appears in the same (apparently random) order.  Why?!
snip/

XSL:

xsl:template match=items
 xsl:apply-templates
  xsl:sort select=item/color
 /xsl:apply-templates
/xsl:template
xsl:template match=item
 xsl:value-of select=name/
/xsl:template
The problem is: it doesn't matter what expression I use in the xsl:sort statement (item/color or item/name or item/shape) because the output never changes.  This implies to me that the xsl:sort statement is being ignored for some reason.  Is it possibility that I messed up the configuration of Cocoon such that some features of XSL work and other don't?  I am baffled because this seems like such basic functionality.

What am I doing wrong?!
With apply-templates you already change the context of the sort 
expression to the child nodes. From the child nodes (including 
whitespace-only text nodes and item elements) the sort expression 
item/color is evaluated, but obviously not found. Nothing can be sorted.

Try xsl:sort select=color/. Or to make it more obvious:

xsl:apply-templates select=item
  xsl:sort select=color/
/xsl:apply-templates
Joerg

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


[HELP]No pipeline matched request: baseballlibrary/ballplayers/B/Bloomquist_Willie.stm

2004-04-11 Thread Howard and Caley Sand



Description:org.apache.cocoon.ResourceNotFoundException: No 
pipeline matched request: 
baseballlibrary/ballplayers/B/Bloomquist_Willie.stm


RE: sort in 2.1.4 not working

2004-04-11 Thread Philipp Burkert
Hej,

 I just installed Cocoon 2.1.4 under Windows 2000 
 and am trying to do a trivial sort, but regardless 
 of what I do, the output appears in the same 
 (apparently random) order.  Why?!

 xsl:template match=items
  xsl:apply-templates
   xsl:sort select=item/color
  /xsl:apply-templates
 /xsl:template

The apply-templates matches all nodes that are children of the items node.
In your case those nodes matched are item nodes. Because you have to
specify your sort criteria relative to the current node you have to skip the
item/. It works fine if you write:

   xsl:sort select=color

Best regards
PHILIPP BURKERT


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



(Easy) Passing a Variable From Sitemap to StyleSheet?

2004-04-11 Thread David Swearingen
I thought this would be easy...I'm trying to pass a variable defined in
the Sitemap, and retrieve it in the Stylesheet.

Specifically, I have {1} defined in the sitemap, which is the basename
of a file, and I want to refer to this filename in a stylesheet that's
called by a transformer.  I'm then going to reference this filename in
the src attribute of a cinclude:include tag in the stylesheet.   Need
to know a) how to define it in sitemap and b) how to retrieve it in
stylesheet.

Thanks,
David


__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

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



RE: Best Way to Build a Traditional Website Structure Using Coc oon?

2004-04-11 Thread David Swearingen
Gary:

I've not considered CSS for layout since I'm comfortable with
tables...but I'm open to hearing if there is a better way to layout
header/footer/nav/body in a way that is consistently handled by most
browsers.

David

--- Schultz, Gary - COMM [EMAIL PROTECTED] wrote:
 Have you considered cascading style sheets (css) for layout instead
 of
 tables. I'm using that for my web sites and I think it tends to
 simplify
 things. Use Cocoon to build the html element structure and css to
 layout the
 web page. This way you do not have to worry about getting the
 different
 parts of the page in the correct table layout element. The basic
 layout of
 our Commerce Housing website at http://commerce.wi.gov/housing/ is
 css
 based. 
 
 Gary T. Schultz
 Web Technical Administrator / GIS Coordinator
 Wisconsin Department of Commerce
 6th Floor
 P.O. Box 7970
 Madison, WI 
 1-608-266-1283
 
 
 -Original Message-
 From: David Swearingen [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 08, 2004 5:04 PM
 To: [EMAIL PROTECTED]
 Subject: Best Way to Build a Traditional Website Structure Using
 Cocoon?
 
 
 Newbie question:  I am designing a dynamic website and have chosen
 Cocoon as the architecture.  The website will contain a 'classic'
 structure, with left navigation, masthead, footer, and a body section
 containing content.  The various elements, like the navigation,
 surrounding the content will rarely change of course.  I will define
 these in XML.  So there will be a leftnav.xml, masthead.xml,
 footer.xml.  In a typical website like this the whole thing is in an
 html table, and the top row of the table contains the masthead, a
 left
 cell contains the navigation, the right cell contains the body text,
 and the bottom row contains the footer.  Very straightforward, done
 all
 the time.  I've built numerous sites like this with Struts and other
 tools.
 
 Now imagine the request comes for a page, like faq.html.  I know how
 to
 make Cocoon grab faq.xml and run it through a XSL transformer to add
 the html markup and then serialize it out.  Done this already.
 
 But for my website I need to generate the entire table context for
 the
 page, then insert the masthead html, then there's more html that
 closes
 the table cell and opens a new one, generates the left navigation
 html
 from leftnav.xml, closes the cell, spits out my content from faq.xml,
 etc., you get the picture.
 
 Ideally I want my page structure html -- the code that defines the
 overall page table that holds all the elements -- in one file, and
 the
 masthead, navigation and footer in their own files, and then of
 course
 the content documents are in their respective xml files.  This makes
 for easy site maintenance.
 
 So what's the best way to do this in Cocoon?  It seems it could be
 accomplished in numerous ways, but I have a feeling there's a
 best-practice here.
 
 Thanks,
 David
 
 __
 Do you Yahoo!?
 Yahoo! Small Business $15K Web Design Giveaway 
 http://promotions.yahoo.com/design_giveaway/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

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



RE: (Easy) Passing a Variable From Sitemap to StyleSheet?

2004-04-11 Thread Philipp Burkert
Hi,

 I thought this would be easy...I'm trying to pass a variable 
 defined in the Sitemap, and retrieve it in the Stylesheet.

first you have to handle the parameter to the transformer within the
sitemap.

---sitemap--
map:match pattern=*/show.html
   map:generate src=xmldb:xindice-embed:///db/beschlusslage//
   map:transform type=xslt src=xslt/antrag2html.xslt
map:parameter name=oid value={1}/
   /map:transform 
   


Then you have to
- declare the parameter in the xslt
- and output it later with the $varname syntax

---xslt--
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xsl:output method=xml version=1.0 encoding=UTF-8
indent=yes/
xsl:param name=oid/
  ...
xsl:template match=meta name=antrag
 xsl:value-of select=$oid/
  ...


Hope that helps

PHILIPP BURKERT
[EMAIL PROTECTED]


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



RE: (Easy) Passing a Variable From Sitemap to StyleSheet? - One complication

2004-04-11 Thread David Swearingen
Indeed I can use the variable in the stylesheet as described below by
Philip but I failed to anticipate that I have to use the variable
INSIDE of another tag, that is, I have a variable foo that represents a
filename and I have to use it as follows:

[cinclude:include src=foo.xml]   

I'm assuming I can't nest a xsl:value-of tag inside of a
cinclude:include tag...how would I render this value in this manner?

Thanks,
David


--- Philipp Burkert [EMAIL PROTECTED] wrote:
 Hi,
 
  I thought this would be easy...I'm trying to pass a variable 
  defined in the Sitemap, and retrieve it in the Stylesheet.
 
 first you have to handle the parameter to the transformer within the
 sitemap.
 
 ---sitemap--
 map:match pattern=*/show.html
map:generate src=xmldb:xindice-embed:///db/beschlusslage//
map:transform type=xslt src=xslt/antrag2html.xslt
   map:parameter name=oid value={1}/
/map:transform 

 
 
 Then you have to
 - declare the parameter in the xslt
 - and output it later with the $varname syntax
 
 ---xslt--
 xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
   xsl:output method=xml version=1.0 encoding=UTF-8
 indent=yes/
   xsl:param name=oid/
   ...
   xsl:template match=meta name=antrag
  xsl:value-of select=$oid/
   ...
 
 
 Hope that helps
 
 PHILIPP BURKERT
 [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

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



RE: (Easy) Passing a Variable From Sitemap to StyleSheet? - One complication

2004-04-11 Thread Conal Tuohy
Hi David. This is more of an XSLT question now really, if I understand you
correctly.

You should use attribute value templates (i.e. curly braces):

xsl:variable name=foo/

...

cinclude:include src={$foo}/

You could indeed use xsl:value-of, like this:

cinclude:include
xsl:attribute name=src
xsl:value-of select=$foo/
/xsl:attribute
/cinclude:include

... which is a bit wordy. The attribute value template approach above is
functionally identical - it's just a handy shorthand syntax.

Cheers

Con

 -Original Message-
 From: David Swearingen [mailto:[EMAIL PROTECTED]
 Sent: Monday, 12 April 2004 12:21
 To: [EMAIL PROTECTED]
 Subject: RE: (Easy) Passing a Variable From Sitemap to
 StyleSheet? - One
 complication


 Indeed I can use the variable in the stylesheet as described below by
 Philip but I failed to anticipate that I have to use the variable
 INSIDE of another tag, that is, I have a variable foo that
 represents a
 filename and I have to use it as follows:

 [cinclude:include src=foo.xml]

 I'm assuming I can't nest a xsl:value-of tag inside of a
 cinclude:include tag...how would I render this value in this manner?

 Thanks,
 David


 --- Philipp Burkert [EMAIL PROTECTED] wrote:
  Hi,
 
   I thought this would be easy...I'm trying to pass a variable
   defined in the Sitemap, and retrieve it in the Stylesheet.
 
  first you have to handle the parameter to the transformer within the
  sitemap.
 
  ---sitemap--
  map:match pattern=*/show.html
 map:generate src=xmldb:xindice-embed:///db/beschlusslage//
 map:transform type=xslt src=xslt/antrag2html.xslt
  map:parameter name=oid value={1}/
 /map:transform
 
  
 
  Then you have to
  - declare the parameter in the xslt
  - and output it later with the $varname syntax
 
  ---xslt--
  xsl:stylesheet version=1.0
  xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xsl:output method=xml version=1.0 encoding=UTF-8
  indent=yes/
  xsl:param name=oid/
...
  xsl:template match=meta name=antrag
   xsl:value-of select=$oid/
...
  
 
  Hope that helps
 
  PHILIPP BURKERT
  [EMAIL PROTECTED]
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


 __
 Do you Yahoo!?
 Yahoo! Tax Center - File online by April 15th
 http://taxes.yahoo.com/filing.html

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




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



Woody tab state control

2004-04-11 Thread Steve Steinitz
Hello,

We attempted to control the tab selection of a tab group
as follows:

the tab group contains

wi:group
wi:styling type = tabs/
wi:state
wt:widget id=tab-state/
/wi:state
...

Our bindings include:

wb:value id=tab-state path=tabState/

which refers to a value passed in from flow as follows

var tabState = new java.lang.Integer(2); // for testing
var bizData = {tabState: tabState};

This all has no effect -- it still shows the first tab.  Ideas.

Thanks,

Steve

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



Is there any tool or method to debug the pipeline?

2004-04-11 Thread lech



to see howstream flows in the pipelineafter a request comes 
in?
I have difficulty in figuring out which part of my pipeline works and which 
part not. I don't know what to do.
is there any tools for this?
Thanks!
Blank Bkgrd.gif