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 :

 

ExtensionURLnamespace
org.ametys.plugins.socialnetworking.XHTMLSerializerExtensionPoint.google

http://base.google.com/ns/1.0 

xmlns:g="http://base.google.com/ns/1.0"

org.ametys.runtime.cocoon.XHTMLSerializerExtensionPoint.emptyNA

NA

 org.ametys.runtime.cocoon.XHTMLSerializerExtensionPoint.xhtml

http://www.w3.org/1999/xhtml
 

xmlns="http://www.w3.org/1999/xhtml"

 org.ametys.runtime.cocoon.XHTMLSerializerExtensionPoint.xml

http://www.w3.org/XML/1998/namespace 

xmlns:xml="http://www.w3.org/XML/1998/namespace"

 org.ametys.runtime.cocoon.XHTMLSerializerExtensionPoint.svg

http://www.w3.org/2000/svg

xmlns:svg="http://www.w3.org/2000/svg"

 org.ametys.runtime.cocoon.XHTMLSerializerExtensionPoint.mathmlhttp://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/".

Back to top