![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - XSL formatting help.. >Thread Next - Re: XSL formatting help.. Re: XSL formatting help..To: NULL Date: 3/2/2005 6:47:00 PM I'm still somewhat new to this myself, but I just ran this version of the stylesheet through Xalan and got your desired results: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml"/> <xsl:output indent="yes"/> <xsl:template match="/"> <xsl:apply-templates select="AAA/dict/dict/*"/> </xsl:template> <xsl:template match="AAA/dict/dict/*"> <xsl:if test="a"> <xsl:text> </xsl:text> <labels> <xsl:text> </xsl:text> <xsl:apply-templates select="a"/> <xsl:text> </xsl:text> </labels> </xsl:if> </xsl:template> <xsl:template match="a"> <xsl:text> </xsl:text> <xsl:value-of select="." /> <xsl:text>="</xsl:text> <xsl:value-of select="following-sibling::*[1]" /> <xsl:text>" </xsl:text> </xsl:template> </xsl:stylesheet> I believe if you try it you will get what you wanted. -Greg | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
