From: Damian Small (dsmall2@bigpond.net.au)
Date: Sun Mar 09 2003 - 17:13:13 PST
Hi David thanks for your reply.
Ive created a code sample as small as possible. There are two files one a
sample XML, two the XSL Im trying to create. The template match on image
with a block that spans both columns. I understand I cant do this but it may
give some idea of what Im trying to achieve.
The XML
<?xml version="1.0" encoding="UTF-8"?>
<root>
<data>
<text>The rain in Spain falls mainly within the columns of
text. The rain in Spain falls mainly within the columns of text. The rain in
Spain falls mainly within the colums of text.</text>
<image size="small" ref="n7123"/>
<text>The rain in Spain falls mainly within the columns of
text. The rain in Spain falls mainly within the columns of text. The rain in
Spain falls mainly within the colums of text.</text>
<text>The rain in Spain falls mainly within the columns of
text. The rain in Spain falls mainly within the columns of text. The rain in
Spain falls mainly within the colums of text.</text>
<text>The rain in Spain falls mainly within the columns of
text. The rain in Spain falls mainly within the columns of text. The rain in
Spain falls mainly within the colums of text.</text>
<text>The rain in Spain falls mainly within the columns of
text. The rain in Spain falls mainly within the columns of text. The rain in
Spain falls mainly within the colums of text.</text>
<image size="large" ref="n7124"/>
<text>The rain in Spain falls mainly within the columns of
text. The rain in Spain falls mainly within the columns of text. The rain in
Spain falls mainly within the colums of text.</text>
<image size="med" ref="n7123"/>
</data>
</root>
The XSL
<?xml version='1.0' encoding='ISO-8859-1'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:rx="http://www.renderx.com/XSL/Extensions"
version="1.0">
<xsl:output method="xml"
version="1.0"
encoding="ISO-8859-1"/>
<xsl:template match="root">
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="TwoCols">
<fo:region-body column-count="2" column-gap="5mm" margin="30mm"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="Repeat">
<fo:repeatable-page-master-reference
master-reference="TwoCols"/>
</fo:page-sequence-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Repeat">
<fo:flow flow-name="xsl-region-body">
<fo:block font-size="16pt" text-align="start">
<xsl:apply-templates/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<!-- Determine if image size is 'large' span both columns -->
<xsl:template match="image">
<xsl:choose>
<xsl:when test="@size='large'">
<fo:block span="all">
<fo:external-graphic src="url(images/{@ref}.tif)"/>
</fo:block>
</xsl:when>
<xsl:otherwise>
<fo:block>
<fo:external-graphic src="url(images/{@ref}.tif)"/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
-----Original Message-----
From: owner-xep-support@www.renderx.com
[mailto:owner-xep-support@www.renderx.com] On Behalf Of David Tolpin
Sent: Saturday, 8 March 2003 6:00 PM
To: xep-support@renderx.com
Subject: Re: [xep-support] still struggling image span
> Im trying to span an image across a two-column page. I understand how to =
> use the span attribute however if I do a match on the image size attribute
=
> in my XML file, the span attribute is ignored outside the flow. This is a
real
> show stopper and Im trying to find a work around.
Damian,
English is not the native language of many participants of this discussion
list. Would you please provide a short XSL FO snippet of what you are trying
to feed to XEP and a description of the desired result.
Please keep the posting small though, just the required flow objects.
David
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
http://www.renderx.com/tos.html
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
This archive was generated by hypermail 2.1.5 : Sun Mar 09 2003 - 17:02:53 PST