Hi Ramesh,

Ramesh Chandra schrieb:
I have recently successfully been able to customize the
page2xhtml.xsl file to completely change the look and feel and the
structure of the pages generated by Lenya.  However, I was not able
to figure out a way to generate <meta name="title" content="{title of
the xhtml page from lenya metadata}"/>.

[…]

I came across a conversation
http://www.nabble.com/-2.0.1----question-about-xsl-and-the-metadata-transformer-td15915341.html,
which said, it is currently not possible to put metadata inside
attributes, you can only create textnode out of it.  Is this
applicable to my situation as well?

Yes, this applies to your situation.

if yes, then what is the remedy for me?

You need an additional XSLT processing step.

In the first stylesheet, use the following code:

  <meta name="title">
    <meta:value
      element="title" ns="http://purl.org/dc/elements/1.1/";
      default="error-404" i18n:attr="default" uuid="{$uuid}"
      lang="{$language}"/>
  </meta>

After the <map:transform type="metaData"/> you have to add another transformation step to transform the text to an attribute:

  <xsl:template match="xhtml:[EMAIL PROTECTED] = 'title']">
    <meta name="title" content="{normalize-space(.)}"/>
  </xsl:template>

But I think we have to extend the transformer to support inserting meta data values as attributes asap.

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]

Reply via email to