Subject: Re: Microsoft XSL and Conformance From: "Steve Muench" <smuench@xxxxxxxxxxxxx> Date: Thu, 16 Mar 2000 12:57:14 -0800 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Microsoft XSL and Conformance, Didier PH Martin | Thread | Future XSLT expansion. ( Re: Micros, Paul Tchistopolskii |
Re: possible to mimic while-like be, David Halsted | Date | RE: possible to mimic while-like be, Arnold, Curt |
Month |