> Basically, my problem is that I have an XML document that's
> been chunked up into smaller pieces. I need to convert each
> of those pieces to HTML separately, with the correct section
> numbers.
Since you're starting with files that have already been chunked, you can't
effectively use xsl:number to get your numbers, so you have to manage it
some other way. (Neither will position() or counting certain kinds of
ancestors be much use, since the document being transformed is not the
"document" the numbering needs to be in reference to.)