xsl-list
[Top] [All Lists]

Re: [xsl] Converting XHTML to FO using XHTML2FO.xsl

2006-10-19 12:19:20
Fleetwood, Brett (DCS) wrote:
What I'm attempting to do is one thing on most <br> tags and another
thing on the last <br> tag under a <li> or <p> tag (I've bolded these in
the example below). My problem is the <br> tag can be n deeply nested
under formatting tags such as <strong>, <em>, etc.

You probably need
 match="br[ancestor::p or ancestor::li]"
and
 match="br[ancestor::p or ancestor::li][position()=last()]"
or so.

The second one might need some parenthesis, can't tell without
testing...

J.Pietschmann

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>