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
tried the snippet below:
<meta name="title">
<xsl:attribute name="content">
<meta:value element="title"
ns="http://purl.org/dc/elements/1.1/" default="error-404" i18n:attr="default"
uuid="{$uuid}" lang="{$language}"/>
</xsl:attribute>
</meta>
But it failed with the message "meta:value is not allowed in this position in
the stylesheet".
I tried various combinations like xsl:value-of
select="//lenya:meta/dc:elements/dc:title", but it no value was being generated
resulting in <meta content="" name="title"/>. Apparently, the xpath is
incorrect which means the dom that I am expecting does not exist. I have done
quite a bit of search on google, and very little yielded. 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? if yes, then what is the remedy for me? I believe this is a very
essential requirement of any website and I cannot believe that lenya doesnt
support it yet. I strongly feel my understanding is flawed somewhere.
regards,
Ramesh
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]