How to Access Publication Meta Data in Reach using XSL

Hi,

I'm wondering how can i access the metadata of a publication in Reach using XSL (e.g. when working with html_custom).

 

Thanks,

Nikku

Parents
  • Hi Nikku,

    All of the publication/language level metadata fields in Reach are passed as parameters to html.xsl. The name of the parameter is pub.lang.<name of field as seen in Manage Pubs>. So if you have a field named my.meta at the publication language level, you first define the parameter name at the top of html_custom.xsl using <xsl:param name="pub.lang.my.meta"/> and you can then output it in one of the XSL templates using <xsl:value-of select="$pub.lang.my.meta"/>

    Regards,
    Steve

    Steve Layland | Senior Consultant | SDL

  • Hi Steve,

    Thank you for your help.
    I tried to do it but the value of the metadata fields are empty.

    I can see at the head of the generated html that there are meta elements with name starting with "pub.langversion.<meta.field>". I've tried to use "pub.langversion.<meta.field>" and just the metadata field name but I still don't get the value.

    What might be the problem?

    Thanks,
    Nikku
Reply Children