RE: how to use Input Modules ?

2002-10-07 Thread Piroumian Konstantin

First of all I should warn you to be careful with InputModules until some
oficial release, cause they are actively discussed right now at the dev list
and they can be changed (names, behavior, interfaces). You have been warned.

To use the DefaultsMetaModule you should tweak your cocoon.xconf where the
module is declared and add the values you need (just like the 'defaultSkin'
and 'base-uri' values are declared) and then simply use it like this in your
sitemap:

map:transform src=skins/{defaults:skin}/style.xsl /

Change {defaults:skin} to {defaults:yourVariableName}.

--
  Konstantin

 -Original Message-
 From: Barbara Post [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, October 07, 2002 3:45 PM
 To: [EMAIL PROTECTED]
 Subject: how to use Input Modules ?
 
 
 It seems that DefaultsMetaModule could fit my need : since I 
 have troubles with sitemap global parameters, they don't seem 
 to work well, how can I use Input Module to feed some 
 variables (constants in fact) in ? It's not clear to me.
 
 Thanks for more info.
 
 Babs
 
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: how to use Input Modules ?

2002-10-07 Thread Christian Haul

On 07.Oct.2002 -- 04:03 PM, Piroumian Konstantin wrote:
 First of all I should warn you to be careful with InputModules until some
 oficial release, cause they are actively discussed right now at the dev list
 and they can be changed (names, behavior, interfaces). You have been warned.
 
 To use the DefaultsMetaModule you should tweak your cocoon.xconf where the
 module is declared and add the values you need (just like the 'defaultSkin'
 and 'base-uri' values are declared) and then simply use it like this in your
 sitemap:
 
 map:transform src=skins/{defaults:skin}/style.xsl /
 
 Change {defaults:skin} to {defaults:yourVariableName}.

I should add that it does make sense to have your own instance for
that. Just copy the declaration and use a different name for your
instance.

Chris.
-- 
C h r i s t i a n   H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: how to use Input Modules ?

2002-10-07 Thread Barbara Post

Thanks Konstantin, your warnings are welcome :-)
I will have a look on cocoon-dev for more info...

Please, do you have an idea when I can fully use sitemap global parameters ?
With {../../ ... } it gets messy to read, and {/param} doesn't work for
now... (10/03 CVS).

Don't mean to offend.

Babs
- Original Message -
From: Piroumian Konstantin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 07, 2002 2:03 PM
Subject: RE: how to use Input Modules ?


 First of all I should warn you to be careful with InputModules until some
 oficial release, cause they are actively discussed right now at the dev
list
 and they can be changed (names, behavior, interfaces). You have been
warned.

 To use the DefaultsMetaModule you should tweak your cocoon.xconf where the
 module is declared and add the values you need (just like the
'defaultSkin'

 and 'base-uri' values are declared) and then simply use it like this in
your
 sitemap:

 map:transform src=skins/{defaults:skin}/style.xsl /

 Change {defaults:skin} to {defaults:yourVariableName}.

 --
   Konstantin

  -Original Message-
  From: Barbara Post [mailto:[EMAIL PROTECTED]]
  Sent: Monday, October 07, 2002 3:45 PM
  To: [EMAIL PROTECTED]
  Subject: how to use Input Modules ?
 
 
  It seems that DefaultsMetaModule could fit my need : since I
  have troubles with sitemap global parameters, they don't seem
  to work well, how can I use Input Module to feed some
  variables (constants in fact) in ? It's not clear to me.
 
  Thanks for more info.
 
  Babs
 
 
  -
  Please check that your question  has not already been answered in the
  FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:   [EMAIL PROTECTED]
 

 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




use-case [was :Re: how to use Input Modules ?]

2002-10-07 Thread Barbara Post
/
   /map:transform
   !-- keeps request params but not errors added
  by form validation --
   map:transform type=simple-form/
   map:serialize type=html/
  /map:act
  !-- no form validation occured ever, generates input form --
  map:aggregate element=page
   map:part element=mlform src=cocoon://mlform/
   map:part element=template
src=xmldb:tamino://{baepp:taminoserver}/tamino/{baepp:taminodatabase}/{baep
p:taminocollection}/#Template[@Id='{../template}']/
   map:part element=lickeymat
src=xmldb:tamino://{baepp:taminoserver}/tamino/{baepp:taminodatabase}/{baep
p:taminocollection}/#licKeyMat[@number='{../licKeyMat}' and
version/@versionnb='{../version}']/
   map:part element=plugging
src=xmldb:tamino://{baepp:taminoserver}/tamino/{baepp:taminodatabase}/{baep
p:taminocollection}/#Plugging[@product='{../licKeyMat}' and
@version='{../version}']/
   map:part element=checked src=cocoon://getcheckedplugs/
   map:part element=session src=xml/getxml.xml/
  /map:aggregate
  map:transform type=session/
  !-- generates form to fill --
  map:transform src=xsl/genlicform2fill.xsl
   map:parameter name=use-request-parameters value=true/
  /map:transform
  map:transform type=simple-form/
  map:serialize type=html/
 /map:act
/map:act
   /map:match


- Original Message -
From: Piroumian Konstantin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 07, 2002 3:30 PM
Subject: RE: how to use Input Modules ?


 Please let us know if you have any improvement suggestions or some real
 use-cases regarding the input modules (or global parameters)

 
  Please, do you have an idea when I can fully use sitemap
  global parameters ? With {../../ ... } it gets messy to read,
  and {/param} doesn't work for now... (10/03 CVS).

 Speaking frankly, I have no idea. Although, I've proposed the global
 parameters idea, but they were implemented by Carsten.

 IMO, input modules cover almost all the tasks that global parameters solve
 (except for the propogating values to sub-sitemaps in map:mount).

 --
   Konstantin




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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