Subject: Re: XSL Limitation? Is this possible? From: Duane Nickull <webmaster@xxxxxxxxxxxxxxxxx> Date: Mon, 17 May 1999 08:31:00 -0700 |
Bonjour Emmanuel: Ca va? J'aime excuse ma francais, S.V.P. - il est difficile pour moi en Vancouver, Canada, il parlais le langue de l'anglais seullement, non francais. The example you gave is very simple for a straight translation but sometimes, authors need to process the information into a different format depending on the end user. Take a simple E-commerce database that has record sets of different products. For one end user, we may wish to show the fields "name,price,retail cost, taxable and product information" in a rich graphical format. Another user may wish to see only text for the fields"name, product, {retail cost} X .6 = wholesale cost, and available inventory. Still, another user may be another program that needs just pure XML sent to it but in a different order so it can process the nodes to present 3 or 4 different views for the end user. If it can be done simply, we try and do this but the real world sometimes presents difficult problems to overcome with more complex syntax. XSLT is great at tackling those problems. Duane Nickull Emmanuel.Leguy wrote: > > I have a very simple solution which works perfectly with cocoon: > > <?xml version="1.0"?> > > <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> > > <xsl:template match="PARAGRAPH"> > <HTML> > <BODY> > <xsl:apply-templates/> > </BODY> > </HTML> > </xsl:template> > > <xsl:template match="SENTENCE"> > <xsl:apply-templates/> > </xsl:template> > > <xsl:template match="SUBJECT"> > <B><xsl:apply-templates/></B> > </xsl:template> > > <xsl:template match="VERB"> > <B><xsl:apply-templates/></B> > </xsl:template> > > </xsl:stylesheet> > > Why more complicated solutions? Because of IE5? > > Emmanuel Leguy. > > -- > Laboratoire d'Informatique Fondamentale de Lille (LIFL) > Universite des Sciences et Technologies de Lille > Batiment M3 Cite Scientifique > 59655 Villeneuve d'Ascq Cedex > FRANCE > tel: 03 20 33 63 38 > fax: 03 20 43 65 66 > mailto:Emmanuel.Leguy@xxxxxxx > http://www.lifl.fr > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: XSL Limitation? Is this possib, Emmanuel.Leguy | Thread | RE: XSL Limitation? Is this possib, Pete Beazley |
How to find unique element., Anand A Tarkas , Gur | Date | WWW8, Duane Nickull |
Month |