Gaurav Kalia schrieb:
Hi
Do you also see this?
Actually i was facing this problem so I asked Sachin about the issue.
Now if you see in the page.xsl file of the publication, it contains a
tag for title: -
<title><meta:value element="title" ns="http://purl.org/dc/elements/1.1/"
default="default"
i18n:attr="default" uuid="{$uuid}" lang="{$language}"/></title>
Which fetches the title entered from the CMS. I have used the same and
changed the value to description like this: -
<meta:value element="description" ns="http://purl.org/dc/elements/1.1/"
default="default"
i18n:attr="default" uuid="{$uuid}" lang="{$language}"/>
And description starts coming as a text on the webpage but meta
description tag should be like of this
<meta name="description" content="{should come from CMS}">
The MetaDataTransformer doesn't support attribute values yet. You need a
subsequent transformation to create the meta element.
1. XSLT transformation
<meta name="description"><meta:value element="description" …/></meta>
2. meta-data transformation
3. XSLT transformation
<xsl:template match="xhtml:meta[not(@content)]">
<meta content="{.}">
<xsl:copy-of select="@*"/>
</meta>
</xsl:template>
HTH,
-- 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]