Subject: Re: Can axis specifiers be used inside fo:flow?
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Tue, 17 Oct 2006 22:32:35 +0530
|
The answer is "yes". You have to be sure that the XSL file is well-formed.
A good debugging method is, first run XSLT engine on the original XSL
(having both XSLT and XSL-FO) file. This will generate pure XSL-FO
(XSL-FO markup + data from source XML). Now run FO engine on the
XSL-FO. If you don't get any error, and the output is ok, then
everything was ok.
On 10/17/06, ms <mina_hurray@xxxxxxxxx> wrote:
Hi all:
Can Axis Specifiers be used inside fo:flow? I have
been unsuccessful in trying to use them.
I am actually trying to check if an element is a
direct child of another element inside fo:flow:
<fo:flow flow-name="xsl-region-body">
<fo:block>
<xsl:choose>
<xsl:when
test="/root/element1[following-sibling::image]">
<xsl:apply-templates
select="/root/element1/image>
<fo:block/>
</xsl:when>
</xsl:choose>
</fo:block>
</fo:flow>
This does not work.
Please let me know if there is anything wrong in this
code or if this kind of checking cannot be done inside
fo:flow.
Thank you.
--
Regards,
Mukul Gandhi
|