Jump to content

gib65

Members
  • Posts

    3
  • Joined

  • Last visited

gib65's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. 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: 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: 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.
  2. Hello, I need a way to store a Boolean variable that I can toggle. I'm told by http://www.w3schools.com/xsl/el_variable.asp that once you create a variable (with <xsl:variable.../>) you cannot change it. But then what do I use if I want a changeable variable? Thanks
  3. Hello, I'm brand new to XSL and I have a newbie question: I'm trying to convert a value to a date. The format needs to be DD-MM-YYYY. I found this website that says I can use format-date(). But I get a compiler error: 'format-date() is an unknown XSLT function. Obviously, I need to import some library that contains the format-date() function, but I don't know how to do that. This is probably important too. The line I have that calls format-date() is: <xsl:value-of select="format-date(PCR/VW_PI_PATIENTCONTACTS[@PERSONTYPEID=3]/@DOBDATE, 'DD-MM-YYYY')"/> Can anyone help me please? Thanks
×
×
  • Create New...