Subject: RE: [xsl] document() widlcard? From: "Evan Lenz" <elenz@xxxxxxxxxxx> Date: Wed, 8 Aug 2001 13:45:11 -0700 |
No wildcard mechanism, but here's a possible solution. Use a source tree configuration file that includes all your documents, such as the following: <documents> <document href="xml/ba090.xml"/> <document href="xml/foo.xml"/> <document href="xml/bar.xml"/> ... </documents> In your XSLT, you can say: <xsl:for-each select="document(/documents/document/@href)"> ... </xsl:for-each> or <xsl:apply-templates select="document(/documents/document/@href)" mode="documents"/> I hope this is enough to get your imagination going. Evan Lenz XYZFind Corp. > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Jennifer > Hochgesang > Sent: Wednesday, August 08, 2001 1:13 PM > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] document() widlcard?, Jennifer Hochgesang | Thread | RE: [xsl] document() widlcard?, Chris Bayes |
Re: [xsl] Entity References, Mike Brown | Date | [xsl] A unique distinct problem, Nate |
Month |