Problème d'utilisation de FCKEditor
Bon alors je me suis résigné à abandonner HTMLArea sur 2006 et j'utilise donc FCKEditor.
Problème :
J'arrive à l'utiliser dans une simple page web HTML, mais pas dans un service xmlrad.
Config :
xmlrad 2006, windows 2000, IIS 5.0
Architecture de fichier
Voici mon architecture de fichier pour comprendre comment j'ai codé mon xsl :
Delos
|-> Projects
|->FCKEditor
|->MyProjects
|->Bin
|->XML
|->MyModule
|-> MonService.xsl
Code
Et voici donc comment j'ai codé mon xsl pour qu'il m'affiche mon text area :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
| <?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xslc="http://xslcomponents.org/TR/WD-xslc">
<xsl:import href="../xslc.xsl"/>
<xsl:import href="../Common.xsl"/>
<xsl:template match="/">
<xsl:apply-templates select="document"/>
</xsl:template>
<xsl:template match="document">
<xsl:call-template name="xslc:Page">
<xsl:with-param name="Title">TestFCKEditor</xsl:with-param>
<xsl:with-param name="Head">
<!--IMPORTATION DU JS DE FCKEditor-->
<script type="text/javascript" src="../../../../FCKeditor/fckeditor.js"></script>
</xsl:with-param>
<xsl:with-param name="PageTitle">
<img align="absmiddle" src="{$XMLC_PictosPath}ico_service.gif"/>*TestFCKEditor</xsl:with-param>
<xsl:with-param name="ToolbarButtonsLeft">
<ToolbarButton>
<xsl:call-template name="ToolButtonRefresh"/>
</ToolbarButton>
<ToolbarButton>
<img border="0" src="{$XMLC_SkinPath}toolbar_separator.gif"/>
</ToolbarButton>
<xsl:call-template name="CommonToolbarButtonsLeft"/>
</xsl:with-param>
<xsl:with-param name="ToolbarButtonsRight">
<xsl:call-template name="CommonToolbarButtonsRight"/>
</xsl:with-param>
<xsl:with-param name="ActionMenu">
<xsl:call-template name="xslc:ActionPanel">
<xsl:with-param name="Name">TestFCKEditorMenu</xsl:with-param>
<xsl:with-param name="TitleImage">
<xsl:value-of select="$XMLC_PictosPath"/>button_service.gif</xsl:with-param>
<xsl:with-param name="Title">TestFCKEditor</xsl:with-param>
<xsl:with-param name="Dark">1</xsl:with-param>
<xsl:with-param name="Items">
<Item HRef="{/document/Aliases/TDVADLL}TestFCKEditor" ImagePath="{$XMLC_PictosPath}button_service.gif" Caption="TestFCKEditor"/>
</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="ActivePageName">TestFCKEditor</xsl:with-param>
<xsl:with-param name="Tabs">
<Tab Name="TestFCKEditor">
<a href="{/document/Aliases/TDVADLL}TestFCKEditor">
<img align="absmiddle" border="0" src="{$XMLC_PictosPath}ico_service.gif"/>*TestFCKEditor</a>
</Tab>
</xsl:with-param>
<xsl:with-param name="Body">
<xsl:call-template name="xslc:ApplicationMessages"/>
<p>Text Area</p>
<form method="post" name="MainForm">
<!--CREATION DU TEXTE AREA-->
<script type="text/javascript">
var oFCKeditor = new FCKeditor('FCKeditor1');
oFCKeditor.BasePath = "../../../../FCKeditor/";
oFCKeditor.Create();
</script>
</form>
<xsl:call-template name="xslc:PoweredBy"/>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
</xsl:stylesheet> |
Au passage, même si je change les "../../../../FCKeditor/" par "D:/Delos/Projects/...", ça ne change rien.
(Mon xmlrad n'est pas installé dans Program File!)
Aurai-je donc oublié qqchose?
Merci à vous de vos réponses...