You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by David Leangen <dl...@canada.com> on 2005/01/11 07:59:13 UTC

RE: CForms Tutorial

Hi, Karsten,

Thanks for this.

>   <xsl:param name="resources-uri">resources</xsl:param>
>
>   <xsl:template match="head" mode="forms-field">
>     <script src="{$resources-uri}/forms-lib.js" type="text/javascript"/>
>     <link rel="stylesheet" type="text/css" href="main.css"/>
>   </xsl:template>

Actually, I did the code above to the code below, but even then, it didn't
work. :-(


   <xsl:template match="head" mode="forms-field">
     <script src="forms-lib.js" type="text/javascript"/>
     <link rel="stylesheet" type="text/css" href="main.css"/>
   </xsl:template>


Cheers,
Dave



> -----Original Message-----
> From: kt@condat.de [mailto:kt@condat.de]
> Sent: 11 January 2005 2:15
> To: dleangen@canada.com
> Subject: CForms Tutorial
>
>
> Hi David,
>
> to answer your question in the tutorial:
>
> The form only works when the page is referenced as "resource/forms-lib.js
> because of the forms-styling.xsl. In there, you can find the following
> template:
>
> <!-- Location of the resources directory, where JS libs and icons are
> stored -->
>
>   <xsl:param name="resources-uri">resources</xsl:param>
>
>
>   <xsl:template match="head" mode="forms-field">
>     <script src="{$resources-uri}/forms-lib.js" type="text/javascript"/>
>     <link rel="stylesheet" type="text/css" href="main.css"/>
>   </xsl:template>
>
> As you can see, the parameter ressources-uri has the value 'ressources'.
> If you want to use an alternative location, you have to change it here.
> I hope that answers your question (I needed about 2 hours to find it, the
> first time I tried to understand the car/country-example).
>
> Best wishes,
> Karsten Thiemann


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