|
Subject: RE: [xsl] XSL and XML Help From: "Cho, Minho" <minho.cho@xxxxxxxxxx> Date: Fri, 13 Oct 2006 08:48:57 -0400 |
I GOT IT !! :-)
<xsl:for-each select="//infoObject">
<tr>
<td>
<xsl:value-of select="infoObjectDetail[@title ='Description']"/>
<xsl:text> </xsl:text>
</td>
</tr>
</xsl:for-each>
Minho Cho
-----Original Message-----
From: Richard Lewis [mailto:richardlewis@xxxxxxxxxxxxxx]
Sent: Friday, October 13, 2006 8:34 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] XSL and XML Help
On Friday 13 October 2006 13:07, Cho, Minho wrote:
> I have an XSL file that grabs objects to form a table from an XML file.
> However I only want it to grab certain objects with a certain tag on
> them.
> For example:
> XML file has:
> <?xml version="1.0" encoding="UTF-8"?>
> <infoObject>
> <infoObjectDetail title='Field'>Test Field</infoObjectDetail>
> <infoObjectDetail title='Description'>Test Desc</infoObjectDetail>
> <infoObjectDetail title='Object'>Test Object</infoObjectDetail>
> <infoObjectDetail title='Source'>Test Source</infoObjectDetail>
> </infoObject>
If you don't /need/ xsl:for-each, what about this:
<xsl:template match="infoObjectDetail[@title!='Description']">
<!-- la la la -->
</xsl:template>
Cheers,
Richard
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Richard Lewis
Sonic Arts Research Archive
http://www.sara.uea.ac.uk/
JID: ironchicken@xxxxxxxxxxxxxxx
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] XSL and XML Help, David Carlisle | Thread | [xsl] Xsl:if to determine if any no, David Steketee |
| RE: [xsl] XSL and XML Help, Cho, Minho | Date | [xsl] Xsl:if to determine if any no, David Steketee |
| Month |