Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - XSLT question [Thread Next] Re: XSLT questionTo: NULL Date: 11/3/2004 10:56:00 AM You can try something like this: <?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" /> <xsl:template match="/"> <table> <xsl:apply-templates select="root/thing"/></table> </xsl:template> <xsl:template match="thing"> <TR> <td> Current type:<xsl:value-of select="type"/>, next type is:<xsl:value-of select="following-sibling::thing/type"/> </td> </TR> </xsl:template> </xsl:stylesheet> "Don" <doduong12141214@h...> wrote in message news:%23ZVx33QwEHA.2172@T...... > Hi: > > If I am on the first set of <thing> and have finished evaluating the > <type> to do a transform, > and I need to check the next <type> on the next set, before I move to it, is > there a function to call? > > Thanks, > > Don > > <root> > <thing> > <type>a</type> > </thing> > <thing> > <type>a</type> > </thing> > <thing> > <type>b</type> > </thing> > </root> > > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
