This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Creating a container?
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 26 Nov 2001 22:22:42 -0000
- Subject: RE: [xsl] Creating a container?
- Reply-to: xsl-list at lists dot mulberrytech dot com
> I know my life would be easier if I had container elements around
> each chapter's content...
Creating an explicit hierarchy from a flat structure is one of the harder
jobs to do in XSLT - it's essentially a parsing problem. It can be done, but
it's not easy.
My instinct, especially if you're new to XSLT, would be to tackle this one
as a SAX filter written in Java. You can either use this for a one-off
transformation, or you can use this as an input filter in front of your XSLT
Stylesheet.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list