Hi,
I wonder if you don't need to put an explicit closing tag
</script> instead of an empty element.
Put a blank inside to be sure to obtain the following :
<script src=""></script> in your html page.
So your code becomes :
<xsl:template match="head" mode="forms-field">
<script src="" type="text/_javascript_"> </script>
<link rel="stylesheet" type="text/css" href=""/>
</xsl:template>
HTH,
David Leangen a écrit :
Hi, Karsten,
Thanks for this.
<xsl:param name="resources-uri">resources</xsl:param>
<xsl:template match="head" mode="forms-field">
<script src="" type="text/_javascript_"/>
<link rel="stylesheet" type="text/css" href=""/>
</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="" type="text/_javascript_"/>
<link rel="stylesheet" type="text/css" href=""/>
</xsl:template>
Cheers,
Dave
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 11 January 2005 2:15
To: [EMAIL PROTECTED]
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="" type="text/_javascript_"/>
<link rel="stylesheet" type="text/css" href=""/>
</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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Jean-Christophe Kermagoret
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
|