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:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 12:05 PM
To: [EMAIL PROTECTED]
Subject: RE: split in sitemap
I see two ways:
- write an action
- write an input module
Reinhard
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 23, 2003 11:47 AM
> To: [EMAIL PROTECTED]
> 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:
> [EMAIL PROTECTED]
> [mailto:cocoon-users-return-52265-Maxime.Gheysen=swisscom.com@
> xml.apache
> .org]
> Sent: Wednesday, June 18, 2003 10:18 AM
> To: [EMAIL PROTECTED]
> 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:[EMAIL PROTECTED]
> Sent: Wednesday, June 18, 2003 10:07 AM
> To: [EMAIL PROTECTED]
> 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: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]