We help IT Professionals succeed at work.

Using fo:title to format html

niffasmiff
niffasmiff asked
on
Am using xml partner pro and trying to develop style sheets using xsl/xslt.

My page works fine until I attempted to add an fo:title node in the fo:page-sequence block... now it won't display anything, let alone the title: here is my source:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
  <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">    
<fo:layout-master-set>      
      <fo:simple-page-master master-name="scrolling"  background-color="#FFFFFF" page-margin-top="0" page-margin-bottom="0" page-margin-left="0"  page-margin-right="0">
        <fo:region-body margin-top="0" margin-bottom="0" margin-left="0" margin-right="0"/>
      </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-name="page">
      <fo:title>THIS TITLE DOESNT WORK</fo:title>
      <fo:flow flow-name="xsl-region-body">
        <fo:block>
         THE MAIN PAGE BODY GOES HERE
        </fo:block>
      </fo:flow>
    </fo:page-sequence>
  </fo:root>
</xsl:template>
</xsl:stylesheet>
Comment
Watch Question

Commented:
The syntax for <fo:title> is right. - What's your FO processor?

Author

Commented:
I presume you mean what I am using to process the xml + xsl? I am using XML partner pro within delphi.

Unless the fo:title tag doesn't work when formatting to html - would that be correct?
Commented:
fo:title should work according to the W3C recommendation. If it does not the problem is the formatter.
Sorry, I can't test Delphi applications to check for alternatives.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.