[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Hi,
Tempore 15:41:56, die 09/20/2005 AD, hinc in xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Joan Alvarez <ALVAREJO@xxxxxxxxx>:
(note that there are much cleaner CSS-based methods to render an image with a caption)
Re: [xsl] Subject: Re: [xsl] Caption will not Display
Subject: Re: [xsl] Subject: Re: [xsl] Caption will not Display From: "Joris Gillis" <roac@xxxxxxxxxx> Date: Tue, 20 Sep 2005 15:51:50 +0200 |
Hi,
Tempore 15:41:56, die 09/20/2005 AD, hinc in xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Joan Alvarez <ALVAREJO@xxxxxxxxx>:
Following are XSL , XML and DTD sections of documents being used for conversion to html. The figure (jpg file) shows up in the html file, but the caption does not. Any assistance would be very much appreciated.
Joan Alvarez <alvarejo@xxxxxxxxx>
XSL Code:
<xsl:template match="figure/caption"><br /> <br /><i> <xsl:apply-templates/></i> </xsl:template>
<xsl:template match="caption"><br /> <br /><i> <xsl:apply-templates/></i> </xsl:template>
<xsl:template match="figure"> <p><center> <xsl:element name="img"> <xsl:attribute name="src"> <xsl:value-of select="src"/> </xsl:attribute> </xsl:element> </center></p><br /> <br /> </xsl:template>
<xsl:template match="figure"> <p><center> <xsl:element name="img"> <xsl:attribute name="src"> <xsl:value-of select="src"/> </xsl:attribute> </xsl:element> </center></p><br /> <br /> <xsl:apply-templates select="*[not(self::src)]"/> </xsl:template>
(note that there are much cleaner CSS-based methods to render an image with a caption)
regards, -- Joris Gillis (http://users.telenet.be/root-jg/me.html) Don't send spam. I don't like it and it is illegal.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Subject: Re: [xsl] Caption wi, Joan Alvarez | Thread | Re: [xsl] Subject: Re: [xsl] Captio, Joris Gillis |
[xsl] Subject: Re: [xsl] Caption wi, Joan Alvarez | Date | Re: [xsl] Subject: Re: [xsl] Captio, David Carlisle |
Month |