On Friday, September 6, 2002, at 01:46 am, Christopher H. Laco wrote: > Now, lets say I'm going to add a page containing a list of CDs in my > collection. At the XSP level, the xml will probably drop in as > something > simple like > > <page> > <title>My CD Collection</title> > <content/> > <cdlist> > <cd artist="26">Foo Album</cd> > <cd artist="36">Bar Album></cd> > </cdlist> > </page> > > Now, where's the best place to go from here? Add a cd.xsl stylsheet > before > the to_xhtml.xsl stylesheet to convert the <cdlist> to the tags that > to_xhtml.xsl is expecting?
That sounds about right to me. > What about global site data, like a list of links? > Is it best to use another stylesheet to add those to the base page > content > before the to_xhtml.xsl transformation, esp. assumeing we may also > have a > to_html4.xsl and a to_rss.xsl? Yes. Do it the same way you would your CD example. Also design your stylesheets if you can so that you can change easily from a multi-stage system to one where you use <xsl:import/> to combine multiple stylesheets into one. Matt. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
