cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Maxime.Ghey...@swisscom.com>
Subject RE: split in sitemap
Date Mon, 23 Jun 2003 11:04:53 GMT
But is there no function to do that? Because I saw on a sample (sampes/modules) that a concat
function is used: 
<map:parameter name="session [truncated]" value="{request:concat('org. ... .', substring(session,
36))}" /> 

So maybe there is a split function also?



-----Original Message-----
From: Reinhard Pötz [mailto:reinhard_poetz@gmx.net] 
Sent: Monday, June 23, 2003 12:05 PM
To: cocoon-users@xml.apache.org
Subject: RE: split in sitemap


I see two ways:

  - write an action
  - write an input module

Reinhard

> -----Original Message-----
> From: Maxime.Gheysen@swisscom.com 
> [mailto:Maxime.Gheysen@swisscom.com] 
> Sent: Monday, June 23, 2003 11:47 AM
> To: cocoon-users@xml.apache.org
> Subject: split in sitemap
> 
> 
> Is there a way to make a split for a parameter  like:
> input value="abc\def" name="test"
> 
> I want something a "{request-param}" with a split the "\" and 
> get the first part (only "abc" )
> 
> Thanks
> 
> -----Original Message-----
> From: 
> cocoon-users-return-52265-Maxime.Gheysen=swisscom.com@xml.apache.org
> [mailto:cocoon-users-return-52265-Maxime.Gheysen=swisscom.com@
> xml.apache
> .org] 
> Sent: Wednesday, June 18, 2003 10:18 AM
> To: cocoon-users@xml.apache.org
> Subject: RE: concat in sitemap?
> 
> 
> I will try with value="{request-param:concat(servername,'\',name)}".
> But I think I have a problem getting parameter "servername". 
> I don't know why, I just added this input in the login.xml 
> ... <field name="name" type="text" length="24" description="Name"/>
> <field name="password"    type="password" length="10"
> description="Password"/>
> <field name="servername" type="text" length="24" 
> value="CORPROOT" description="LDAP Domain"/> ... The output 
> seems correct : ... <form ...> <input type="text" 
> name="name".../> <input type="password" name="password".../> 
> <input type="text" name="servername".../> </form> ...
> 
> I remarked it because in the sunrise-user.xsl I wrote : 
> <xsl:param name="password"/> <xsl:param name="name"/> 
> <xsl:param name="servername"/> and then <test><xsl:value-of 
> select="$servername"/></test> <--returns nothing 
> <test2><xsl:value-of select="$name"/></test2> <--returns the 
> right name
> 
> 
> 
> -----Original Message-----
> From: Konstantin Piroumian [mailto:kpiroumian@apache.org] 
> Sent: Wednesday, June 18, 2003 10:07 AM
> To: cocoon-users@xml.apache.org
> Subject: Re: concat in sitemap?
> 
> 
> Try this one:
> <map:parameter name="rootdn" 
> value="{request-param:concat(serverurl, '\', name)}}"/>
> 
> Take a look at the Input Modules samples at 
> http://localhost:8888/cocoon/samples/modules . There are 
> several examples of XPath usage with input modules in the sitemap.
> 
> Regards,
>   Konstantin
> 
> ----- Original Message ----- 
> From: <Maxime.Gheysen@swisscom.com>
> To: <cocoon-users@xml.apache.org>
> Sent: Wednesday, June 18, 2003 11:20
> Subject: concat in sitemap?
> 
> 
> Hello,
> I wrote a little time ago because I had problems with my 
> parameters in the sitemap. I thought maybe I had to do like 
> in XSL with a concat function or something like that? That's 
> what I want to get : <map:parameter name="rootdn" 
> value="{request-param:serverurl}\{request-param:name}"/>
> But this way it doesn't work.
> 
> Please help!!!
> Thanks
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message