Re: [xsl] HTML character entity issue

Subject: Re: [xsl] HTML character entity issue
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sun, 28 Dec 2008 16:31:46 GMT
> XSLCmd :WARNING: Unexpected element: 'br' after 'fo:#text' in
> 'fo:block'.

The error message is fairly explicit, your problem is nothing to do with
entities, or with XSLT.

You have generated

... <br/> ...

so you are generating an XSL-FO file and have inserted an HTML br
element in the middle of it. That is an error, FO files should only have
FO elements (unless arapped in foreign object extension element).

The error message is not coming from the XSLT engine but rather from the
XSL-FO engine that is processing the FO file that XSLT created.

To get a linebreak in FO you either want to just use  linebreak
character (#10) together with setting appropriate properties on
the block that the linebreak is rendered, or you can make two separate


The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 

Current Thread