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

Re: Microsoft XSL and Conformance

Subject: Re: Microsoft XSL and Conformance
From: "Steve Muench" <smuench@xxxxxxxxxxxxx>
Date: Thu, 16 Mar 2000 12:57:14 -0800
.xsl download
Didier,

Try the following stylesheet with your favorite
XSLT 1.0 processor:

<AirportSearch xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">
  <xsl:variable name="airport" select="'veni'"/>
  <xsl:variable name="service-url"
     select="'http://ws5.olab.com/xsql/demo/airport/airport.xsql?airport='"/>
  <xsl:variable name="airports" select="document(concat($service-url,$airport))"/>
  <xsl:copy-of select="$airports//Airport/Code | $airports//Airport/Description"/>
</AirportSearch>

This will return you a dynamic list of all airports
in the world (from an Oracle8i database running on
that machine, fronted by our XSQL Pages technology
to implement the "data service") whose name or
code matches the string 'veni'.

<?xml version = '1.0' encoding = 'UTF-8'?>
<AirportSearch>
  <Code>PVE</Code>
  <Description>El Porvenir, Panama Republic</Description>
  <Code>TSF</Code>
  <Description>Venice, Italy-Treviso</Description>
  <Code>VCE</Code>
  <Description>Venice, Italy-Marco Polo</Description>
  <Code>VNC</Code>
  <Description>Venice, Florida, Usa</Description>
  <Code>WPR</Code><Description>Porvenir, Chile</Description>
</AirportSearch>

Indeed document() can be quite powerful!

Have fun.

_________________________________________________________
Steve Muench, Consulting Product Manager & XML Evangelist
Business Components for Java Development Team

----- Original Message ----- 
From: "Didier PH Martin" <martind@xxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Thursday, March 16, 2000 10:54 AM
Subject: RE: Microsoft XSL and Conformance


| Hi Jonathan,
| 
| Jonathan Borden said:
| Again, the most important feature for me, not yet implemented is document()
| support. Hint Hint...
| 
| Didier replies:
| I cannot agree more on that. the Document() function is the angular stone of
| web services usage based on URL request. Just imagine having the possibility
| to make a SQL call with a URL and get back an XML document fragment.
| Furthermore, to be able to get within that fragment the exact
| element/elements through Xpath. As a concrete example:
| 
| document('http://www.mysqlserver.com/sql=select * from mytable')/row/name
| 
| and get a bunch of names from the data base and get it inserted in the
| document to be processed and style it with the rendition language of our
| choice be it to be XHTML, SVG, VoiceML, SMIL and tutti quanti. Yes indeed,
| the document function is where the magic potion is hidden
| 
| Please Jonathan (Marsh) buy a couple of "Asterix the Gaelic" books to your
| team and bring to us this wanted magic potion ;-)
| 
| Cheers
| Didier PH Martin
| ----------------------------------------------
| Email: martind@xxxxxxxxxxxxx
| Conferences: Web Chicago(http://www.mfweb.com)
|              XML Europe (http://www.gca.org)
| Book: XML Professional (http://www.wrox.com)
| column: Style Matters (http://www.xml.com)
| Products: http://www.netfolder.com
| 
| 
|  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.