Re: [xsl] Trying to use fo:page-number-citation to set the initial-page-number of the next page-sequence

Subject: Re: [xsl] Trying to use fo:page-number-citation to set the initial-page-number of the next page-sequenceFrom: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>Date: Fri, 08 Jun 2012 21:19:05 -0400

At 2012-06-08 17:43 -0700, Underwood Michelle wrote:

XSL version: 1
Vendor: Microsoft
Vendor URL: http://www.microsoft.com

My question is: what will make this work, if anything?

Error: Unable to create a channel process for the channel 'Print'(2)
Nested Error: ... [4001] Failed to generate main XSL file used in
Channel Assembly.
Nested Error: [4001] Failed to parse layout
Xsl:when is not allowed in this position in the stylesheet!
[4025]Filed to parse layout
Xsl:when is not allowed in this position in the stylesheet!
(And it repeats these last lines.)

Reviewing your code fragment, I'm led to believe the problem is
elsewhere. I interpret the error message to be that <xsl:when> is
being used not as a child of <xsl:choose>. In your code fragment,
<xsl:choose> is the parent of both <xsl:when> instructions.

I grant the error message from the processor is not helping you find
*which* statement is in error, but I suggest you find each <xsl:when>
and check that its parent is <xsl:choose>.

Or just run this stylesheet on your stylesheet fragments to determine
which fragments have the problem: