I do need the for loop because my xml file has more then one set of
infobject.
Let me try to use your snip of code though.
Minho Cho
-----Original Message-----
From: Richard Lewis [mailto:richardlewis(_at_)fastmail(_dot_)co(_dot_)uk]
Sent: Friday, October 13, 2006 8:34 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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[(_at_)title!='Description']">
<!-- la la la -->
</xsl:template>
Cheers,
Richard
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Richard Lewis
Sonic Arts Research Archive
http://www.sara.uea.ac.uk/
JID: ironchicken(_at_)jabber(_dot_)earth(_dot_)li
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--