KonaKart Community Forum

General Category => Miscellaneous => Topic started by: michaelwechner on May 25, 2010, 10:26:21 am

Title: HTML versus XHTML (well-formed) within table products_description
Post by: michaelwechner on May 25, 2010, 10:26:21 am
Hi

I have noticed that the table product_descriptions of the demo db of konakart contains not-well-formed HTML.

Is it possible somehow to enforce the editing tools of KonaKart that XHTML (well-formed) is saved?

Also I wanted to ask how this is handled by the SOAP interface? Is the not-well-formed HTML just moved into a CDATA block (e.g. description of products_id = '17')?

Thanks

Michael
Title: Re: HTML versus XHTML (well-formed) within table products_description
Post by: julie on May 25, 2010, 11:08:59 am
Regarding the enforcement of XHTML, if that's what you want you can use a custom engine and make a check on the insert and update product API calls before the call is actually passed on to th engine. http://www.konakart.com/docs/EngineCustomization.html
Title: Re: HTML versus XHTML (well-formed) within table products_description
Post by: kate on May 25, 2010, 11:11:17 am
QuoteIs it possible somehow to enforce the editing tools of KonaKart that XHTML (well-formed) is saved?


You can't add this kind of validation to the Admin App directly but since every function of the Admin App uses the Admin API you can use standard KonaKart customization techniques to add the required validation on the editProduct API call.  Eg..  you could create your own editProduct (in a custom engine) and validate your product description before calling KonaKart's editProduct.

QuoteAlso I wanted to ask how this is handled by the SOAP interface? Is the not-well-formed HTML just moved into a CDATA block (e.g. description of products_id = '17')?


You can look at the messages that AXIS 1.4 creates...  You'll see that it doesn't use CDATA sections but uses < > etc...
Title: Re: HTML versus XHTML (well-formed) within table products_description
Post by: michaelwechner on May 25, 2010, 01:22:27 pm
Thanks very much for all your replies. I will have a closer look at the various possibilities and keep you posted on my findings.

Thanks

Michael