[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: profiling on "role" or profiling on "condition"?
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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC