This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: XSL and entities


Bryce Ferguson writes:
 >  <!ENTITY fig01 SYSTEM "picture1.tif" NDATA tiff>

 > <figure id="fig01">
 >  <caption>
 >   <para>Activities, Tasks and Dependencies</para>
 >  </caption>
 >  <graphic figname="fig01"/>
 > </figure>
 >  
 > <!-- XSL Fragment -->
 > <xsl:template match="//figure">
 >  <P><SPAN style="font-size=8pt;">

isnt CSS syntax "font-size:8pt", by the way?

 >   <xsl:variable name="imgRef" select="$graphic/@figname" />
 >   <IMG>
 >    <xsl:attribute name="SRC">
 >     <xsl:value-of select="$imgRef"/>
try

<xsl:value-of select="substring-after(unparsed-entity-uri(@figname),'file:')"/>

sebastian


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]