Format the audience attribute
Posted: Thu Dec 06, 2018 11:58 pm
We have a document that includes a whole bunch of parameters, some of which are for internal use only.
We use the audience attribute to filter out some information that we do not want to disclose to users. It works fine, but I was asked to format the audience attribute so that in the internal document, the information stands out.
in the commons.xsl file, I added this:
And in the commons-attr.xsl I added this:
but when I generate the pdf, the information in the audience attribute, is not formatted in pink. (yes it is just for testing, won't actually use pink)
here is how we use the attribute
So I can't figure out why it is not working.....does anyone have an idea?
kind regards
We use the audience attribute to filter out some information that we do not want to disclose to users. It works fine, but I was asked to format the audience attribute so that in the internal document, the information stands out.
in the commons.xsl file, I added this:
Code: Select all
<xsl:template match="*[contains(@class, ' topic/audience ')]">
<fo:bloc xsl:use-attribute-sets="audience">
<xsl:call-template name="commonattributes"/>
<xsl:apply-templates/>
</fo:bloc>
</xsl:template>
Code: Select all
<xsl:attribute-set name="audience">
<xsl:attribute name="color">#FFC0CB</xsl:attribute>
</xsl:attribute-set>
here is how we use the attribute
Code: Select all
<section audience="internal">Access rights are customised with the following parameters:
<ul>
<li>
<parmname >HiddenUserReadAccessCriteria</parmname>
</li>
<li>
<parmname>HiddenUserWriteAccessCriteria</parmname>
</li>
<li>
<parmname>HiddenObserverReadAccessCriteria</parmname>
</li>
<li>
<parmname>HiddenObserverWriteAccessCriteria</parmname>
</li>
</ul>
</section>
kind regards