The XHTMLSerializerExtensionPoint is linked to the graphic charter: CMS Ametys deletes certain namespaces when a page is generated, keeping only those defined in this extension point.
This is a multiple extension point (i.e. it lists the elements that are capable of defining a feature), so several values can be selected.
The default extensions are :
Extension | URL | namespace |
---|---|---|
org.ametys.plugins.socialnetworking.XHTMLSerializerExtensionPoint.google | ||
org.ametys.runtime.cocoon.XHTMLSerializerExtensionPoint.empty | NA | NA |
org.ametys.runtime.cocoon.XHTMLSerializerExtensionPoint.xhtml | ||
org.ametys.runtime.cocoon.XHTMLSerializerExtensionPoint.xml | xmlns:xml="http://www.w3.org/XML/1998/namespace" | |
org.ametys.runtime.cocoon.XHTMLSerializerExtensionPoint.svg | ||
org.ametys.runtime.cocoon.XHTMLSerializerExtensionPoint.mathml | http://www.w3.org/1998/Math/MathML | xmlns:m="http://www.w3.org/1998/Math/MathML" |
To add an authorized namespace, create a new plugin (see the plugin creation page) and specify the following extension:
<extension id="org.ametys.plugins.socialnetworking.XHTMLSerializerExtensionPoint.opengraph" point="org.ametys.runtime.cocoon.XHTMLSerializerExtensionPoint"> <namespace-allowed>http://opengraphprotocol.org/schema/</namespace-allowed> </extension>
In this example, the namespace used will be xmlns:og="http://opengraphprotocol.org/schema/".