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

Reply
  • 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

Children