Zahidul Islam wrote:
let my xml is:
...
in the pdf i want to show at top the first 2 image(1.jpg,2.jpg)
then the 2 names (AAAA, ZZZZ) and then the last 2 image (3.jpg,4.jpg)
for this i have uesd position(). at first i try to show the
images while position() < 3 then show the names (AAAA, ZZZZ)
then again show the images matching position()>2. but unfortunately
all the 4 images are shown at first then the names.
How can i do that?
Without you showing any code it is hard to debug it. A few more
details about your intentions woulnd't have hurt eiter, but I
guess you want to transform your XML into XSLFO using XSLT.
An XSLT code snippet which might get you started:
<xsl:template match="test">
<xsl:apply-template select="image[position() <= 2]"/>
<xsl:apply-template select="name"/>
<xsl:apply-template select="image[position() > 2]"/>
</xsl:template>
In any case, if you can influence the source XML schema, it is
best to change it to something which is already properly grouped
and arranged.
Furthermore, pure XSLT questions are best asked on the XSL list:
http://www.mulberrytech.com/xsl/xsl-list/
There's a FAQ there too.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]