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

RE: document() widlcard?

Subject: RE: document() widlcard?
From: "Chris Bayes" <chris@xxxxxxxxxxx>
Date: Wed, 8 Aug 2001 22:06:18 +0100
RE:  document() widlcard?
Jennifer,
There is no way to do it in xslt but you can use an xml representation
of a directory in a stylesheet. Have a look at
http://www.bayes.co.uk/xml/index.xml?/xml/utils/dirtoxml.xml
You can then do something like
<xsl:apply-templates select="document(document(xmldir.xml)//file/@name)"
/>
Or a variation

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Jennifer Hochgesang
> Sent: 08 August 2001 21:13
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  document() widlcard?
> 
> 
>  Is there anyway to apply the following template to all of my 
> xmls without having to reference the xsl within each? I would 
> like to provide a wildcard within document such as 
> document('xml/*.xml). Is there a way to do this?
> 
> thank you,
> jennifer
> 
> <xsl:template match="/">
> <html>
> 
> <head>
> 
> <title>Company Audio Script</title>
> 
> <meta http-equiv="Content-Type" content="text/html; 
> charset=iso-8859-1"/>
> 
> </head>
> 
> <body bgcolor="#FFFFFF" text="#000000">
> 
> <xsl:for-each select="document('xml/ba090.xml')">
> 
> <table cellspacing="0" cellpadding="5" border="1" width="800">
> 
> <tr>
> 
> <td colspan="3" align="center" valign="top"><b><xsl:apply-templates
> select="sco/startup/screennumber" /></b></td>
> 
> </tr>
> 
> <xsl:for-each select="sco/core/audio">
> 
> <tr>
> 
> <td align="left" valign="top"><xsl:apply-templates 
> select="@filename"/></td>
> 
> <td align="left" valign="top"><xsl:apply-templates 
> select="character"/></td>
> 
> <td align="left" valign="top"><xsl:apply-templates 
> select="script"/></td>
> 
> </tr>
> 
> </xsl:for-each>
> 
> <xsl:for-each select="sco/core/*/feedback/audio">
> 
> <tr>
> 
> <td align="left" valign="top"><xsl:apply-templates 
> select="@filename"/></td>
> 
> <td align="left" valign="top"><xsl:apply-templates 
> select="character"/></td>
> 
> <td align="left" valign="top"><xsl:apply-templates 
> select="script"/></td>
> 
> </tr>
> 
> </xsl:for-each>
> 
> 
>  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.