Hi Simon,
You're confusing several things I think. First you're not only using XSL-FO but
also XSLT, seen to your xsl:if statements. Furthermore you try to print tags in
stead of elements. Printing only a start tag or an end tag is not possible in
XSLT.
When you do something like:
><xsl:if test="SOUSTHEME != following-sibling::FICHE[1]/SOUSTHEME">
> <!-- First I close the current sequence -->
> </fo:flow> <--
> </fo:page-sequence>
<snip/>
></xsl:if>
You're XML is not wellformed anymore and no XML-Parser will accept it. It
doesn't even reach the XSLT-parser or FO-parser. That's why you get the
following error from the XML-Parser (probably Xerces).
>[Fatal Error] XMLToFO_CD.xsl:1295:3: The element type "xsl:if" must be
>terminated by the matching end-tag "</xsl:if>".
XSL-Fo has the concept of conditional page masters
http://www.dpawson.co.uk/xsl/sect3/pagelayout.html#d10268e184, but I wonder if
this is what you need. Why do you need a new page master sequence for you're
SvG. Why can't you include it in the new one. Maybe on a new page or something
like that.
Cheers,
Agnes
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]