Applying templates within a generated tag

Subject: Applying templates within a generated tag
From: Benjamin Corliss <benjamin@xxxxxxxxxxxxxxx>
Date: Wed, 28 Jul 1999 18:22:52 -0700
I am using a charting tool called PopCharts.  I am attempting to specify a
chart in XML and generate a PopChart <IMG/> reference.  This reference:

<IMG WIDTH="350" HEIGHT="248"
SRC="http://www.webcriteria.com:1234/?@_GIF@_FILE/apfiles/gen_horiz_bars.bin@xxxxxxxxxxxxxxxxxxxxxxxxx(AirFrance,UAL,Delta,KLM,AmericanAirlines,AlaskaAirlines,BritishAirways,Northwest,JAL,TransWorldAirlines)Graph.Series(moo,4.9,
8.6, 9.6, 10.7, 11, 11.3, 13.5, 14.1, 15.6, 15.9
)caption.settext(Ranking)xaxis.settext(seconds)"/>

contains all of the parameters required by PopChart to dynamically generate the
graph.  As you can see, there are two data lists contained within the
complicated SRC attribute.  My initial implementation plan was to build these
lists with an <xsl:for-each>.  However, I have found no easy way to do this.

Could someone point me to some documentation or an example (assuming these
exist) that performs something like this?

Or is this something better suited to M4.

Thanks for your advice,

Benjamin Corliss




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


Current Thread