Hi Ramesh,

Ramesh Chandra schrieb:
I tried "authoring" the website that I am creating using the new
Lenya installation (that I made on my box), porting it from the
static html pages.  However, I am stuck at the very first page.  The
home page has some inline javascripts providing essential navigation
features for the whole website.  This inline javascript cannot be
replaced with any other serverside component.  But, when I tried to
create this page using kupu/one form, I am getting an with message
'error: unknown element "script" from namespace
"http://www.w3.org/1999/xhtml";'.  However, when I copy+pasted the
same content into http://validator.w3.org/ direct-input and it went
through the validation successfuly and was reported as a valid xhtml
file.  I fail to understand the reason why one form is not allowing
inline javasc ript to be used.  Any information on this will be
greatly appreciated.

Lenya is used in some large organziations with multiple content editors who aren't IT experts. In such a scenario, if you allow to add <script> elements to the page context, this is a considerable security risk and could also problems with the website presentation. Therefore the default schema doesn't allow this element.

You can change the schema in the XHTML module accordingly, but I'd strongly discourage this for the reasons mentioned above. You should rather override the XSLT of the homepage or xhtml module (whichever applies to your content) or page2xhtml.xsl to include the <script> elements.

-- Andreas


--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to