Jump to content

attribute sets having no effect


gib65

Recommended Posts

Hello,

 

I have the following attribute set:

 

<xsl:attribute-set name="table_header_font">

<xsl:attribute name="fname">verdana</xsl:attribute>

<xsl:attribute name="size">8pt</xsl:attribute>

<xsl:attribute name="font-weight">bold</xs;:attribute>

</xsl:attribute-set>

 

This is stored in Commonfunctions.xsl.

 

I have another xsl file: PersonalTitle2.xsl in which I have this:

 

<Table border="1" cellspacing="0" cellpadding="0" width="100%" xsl:use-attribute-sets="table_light_border" style="font-size: 8pt; font-family: verdana;">

<THEAD> <!-- style="font-size: 8pt; font-family: verdana; font-weight: bold;">-->

<font xsl:use-attribute-sets="table_header_font">

PATIENT IDENTIFICATION

</font>

</THEAD>

 

But this is what shows up:

 

incorrect_look.jpg

 

This is completely the wrong look. It's defaulting to Times New Roman and the size is obviously WAY off.

 

If I remove the reference to table_header_font in my THEAD and use the CSS commented out above instead, I get this:

 

correct_look.jpg

 

This is the correct look.

 

Why does my attribute set not work? I know that the attribute set for the table overall (table_light_border), which also comes from Commonfunctions.xsl, works as I can manipulate the values therein and get the expected effect. But my attribute set for my table header seems to have no effect.

 

Could it be that my table header attribute set cannot override the table attribute set? But my table attribute set only touches border settings, not font.

 

Your help is much appreciated.

Link to comment
Share on other sites

  • 4 weeks later...

I'm still learning myself. Make sure the formats right, validate it, if you haven't already. Rewrite it. Go over the material.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...