[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSL Limitation? Is this possible?

Subject: Re: XSL Limitation? Is this possible?
From: Duane Nickull <webmaster@xxxxxxxxxxxxxxxxx>
Date: Mon, 17 May 1999 08:31:00 -0700
xsl limitation
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

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

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
> 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


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.