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!

XSLT Problem with template 1

Status
Not open for further replies.

TGJ

Programmer
Jan 31, 2005
64
CA
Hi, I am relatively new to XSLT and have kind of taught myself the basics. What I am trying to do is declare a fo:table object inside a template. However when I do this I get an error. This is case not only with fo:table but with any "fo" tag inside the template. I am wondering what I need to include in the template in order for the compiler to recognize the "fo" tag. Thanks for any help/direction you can provide.
 
As has been discussed in the most recent thread, within a template you must close all the tags that are opened inside that template. So, my guess is that you do not have the </fo:table>.

If this is not the case, please reduce the problem to something that can be posted here and let us have a look.

Tom Morrison
 
I did read that thread however I am closing my tags. Here is what by template looks like.

<xsl:template name="testing">
<fo:table>
<fo:table-column column-width="1.65cm"/>
<fo:table-column column-width="1.65cm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
</fo:table-cell>
<fo:table-cell>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:template>

 
You've declared the fo prefix in the xsl:stylesheet element, I hope?
 
I did not declare the fo namespace in the stylesheet, that was my problem. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top