Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mixing XSLT and XSLFO

Status
Not open for further replies.

goofy78270

Technical User
Jul 24, 2007
38
US
I am looking to rotate my text 90 degrees within the cell, but the following code displays text at a normal rotation of 0. Any ideas what is wrong?

Code:
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" 
  xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform"[/URL]
  xmlns:fo="[URL unfurl="true"]http://www.w3.org/1999/XSL/Format">[/URL]

<!-- Define template for xsl -->
	<xsl:template match="/">

<!-- Define variable for empty string -->
    <xsl:variable name="empty_string"/>
			  
<!-- Define layout for matrix headings -->
    <tr class="Heading1">
		  <xsl:for-each select="MasterKey/Attribute">
        <xsl:choose>
          <xsl:when test="Column = 1">
            <td rowspan="2">
              <xsl:value-of select="Name" />
            </td>
          </xsl:when>
          <xsl:otherwise>
            <xsl:choose>
              <xsl:when test="Position = 1">
                <td colspan="{Column}" align="center">
    		          <xsl:value-of select="Name" />
    		        </td>
              </xsl:when>
            </xsl:choose> 
          </xsl:otherwise>
        </xsl:choose> 
		  </xsl:for-each>
		</tr>
	  <tr class="Heading2">
		  <xsl:for-each select="MasterKey/Attribute">
        <xsl:choose>
          <xsl:when test="Option != $empty_string">
            <td rowspan="2">
              <fo:layout-master-set>
                <fo:simple-page-master master-name="frame">
                  <fo:region-body region-name="frame-body"/>
                </fo:simple-page-master>
              </fo:layout-master-set>
              <fo:page-sequence master-reference="frame">
                <fo:flow flow-name="frame-body">
                  <fo:block-container reference-orientation="90">
                    <fo:block>
  	                  <xsl:value-of select="Option" />
                    </fo:block>
                  </fo:block-container>
                </fo:flow>
              </fo:page-sequence>
  	        </td>            
          </xsl:when>
        </xsl:choose> 
		  </xsl:for-each>
		</tr>
	</xsl:template>
</xsl:stylesheet>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top