Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - transposing to columns >Thread Next - Re: transposing to columns Re: transposing to columnsTo: NULL Date: 1/4/2006 10:14:00 AM "billdebug" <william.delaney@d...> wrote in message news:eYSp43KEGHA.2648@T...... >I have some xml data in the form: > > <event> > <Location>Amsterdam</Location> > <RequestType>Blue</RequestType> > <Severity>Critical</Severity> > </event> > > I can use xslt to produce table with elements in event node horizontal, > but what I want to achieve is: > > Location: Amsterdam > RequestType: Blue > Severity: Critical > > to display in the html table. Having trouble understanding how to tranpose > the elements to this columnar arrangment. > Not sure if my newsreader has interpreted this correctly but, assuming you have your <table>e lement something like: <xsl:template match="event"> <tr><th>Location:</th><td><xsl:value-of select="Location" /></td></tr> <tr><th>RequestType:</th><td><xsl:value-of select="RequestType" /></td></tr> <tr><th>Severity:</th><td><xsl:value-of select="Severity" /></td></tr> </xsl:template> -- Joe Fawcett (MVP - XML) https://mvp.support.microsoft.com/profile=8AA9D5F5-E1C2-44C7-BCE8-8741D22D17A5 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
