This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: profiling on "role" or profiling on "condition"?
- From: Jirka Kosek <jirka at kosek dot cz>
- To: "docbook-apps at lists dot oasis-open dot org" <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 25 Nov 2002 15:25:28 +0100
- Subject: Re: DOCBOOK-APPS: profiling on "role" or profiling on "condition"?
- References: <87smxpwxi2.fsf@home.lan>
Steinar Bang wrote:
>
> When I do profiling for "html" or "pdf" in <mediaobject>, what's the
> correct attribute to use on the <imageobject> elements? "role"? Or
> "condition"?
Selection of correct image format can be done without profiling.
Stylesheet will use first image in recognized format. You can customize
list of supported formats by customizing of following two templates:
<xsl:template name="is.graphic.format">
<xsl:param name="format"></xsl:param>
<xsl:if test="$format = 'PNG'
or $format = 'JPG'
or $format = 'JPEG'
or $format = 'linespecific'
or $format = 'GIF'
or $format = 'GIF87a'
or $format = 'GIF89a'
or $format = 'BMP'">1</xsl:if>
</xsl:template>
<xsl:template name="is.graphic.extension">
<xsl:param name="ext"></xsl:param>
<xsl:if test="$ext = 'png'
or $ext = 'jpeg'
or $ext = 'jpg'
or $ext = 'avi'
or $ext = 'mpg'
or $ext = 'mpeg'
or $ext = 'qt'
or $ext = 'gif'
or $ext = 'bmp'">1</xsl:if>
</xsl:template>
--
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz