I want to be able to change the font-family based upon an attribute value at the root level of an XML file. I need to do this so I can publish XML coming at us in lots of different languages (70+) for a given publication and get the appropriate font-family set for that language.
I can do this for the body of the job by using the appropriate selector and then specifying the font-family that will support that language. But I can't figure out how to do this with the font-family information specified on the @page.
So our XML file looks something like this:
And so I change the font-family by doing this with the selector:
This allows me to dynamically control the font everywhere except in @page area. Does anybody have any ideas how to dynamically control the css call outs like font-family within @page based upon information that can be found in the XML file that is being processed? I would want to be able to change the "Palatino ldsLat" to "Newton ldsArm."
I can do this for the body of the job by using the appropriate selector and then specifying the font-family that will support that language. But I can't figure out how to do this with the font-family information specified on the @page.
So our XML file looks something like this:
<book publicationLanguage="201">
<titleBlock>
<title id="1">Սուրբ գրության զորությունը</title>
<byline>
<para id="2">Երեց Ռիչարդ Գ. Սքոթ</para>
<para id="3">Տասներկու Առաքյալների Քվորումից</para> . . . </book>
And so I change the font-family by doing this with the selector:
/*Armenian*/
book[publicationLanguage = "201"] {
font-family : "Newton ldsArm";
}
This allows me to dynamically control the font everywhere except in @page area. Does anybody have any ideas how to dynamically control the css call outs like font-family within @page based upon information that can be found in the XML file that is being processed? I would want to be able to change the "Palatino ldsLat" to "Newton ldsArm."
@page :left {
margin: 48pt 44pt 44pt 39pt;
@top-left {
content: string(myRunningSectionTitle);
vertical-align: middle;
font-size: 7.5pt;
font-family:"Palatino ldsLat";
font-style:italic; . . .