Hi Ramesh,
Ramesh Chandra schrieb:
I do not understand which
schema / dtd is being used for validating the xhtml in these editors
the schema is src/modules/xhtml/resources/schemas/xhtml.rng
and why is oneform reporting error when w3 validator isnt for the
same format (xhtml1.0-strict).
By default, the xhtml-basic schema is used. You can edit the schema file
mentioned above to include the xhtml-strict schema instead.
-- Andreas
I guess, I did not understand your
answer completely. I do not understand which schema should I change
to, in page2xhtml.xsl. Please note that I am trying to add only
valid xhtml1.0-strict fragments only after having verified it using
w3 validator.
Ramesh
----- Original Message ---- From: Andreas Hartmann
<[EMAIL PROTECTED]> To: [email protected] Sent: Monday, October
20, 2008 2:17:54 AM Subject: Re: can i use kupu editor for creating
content with inline javascipt
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]