Xius-Chronus
New Member
I want to convert xml file using xsltproc and only extract some portions of it, I have xslt like this:\[code\]<?xml version="1.0" ?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xslutput method="xml" indent="yes" encoding="iso-8859-1" /> <xsl:template match="glossary"> <ul> <xsl:for-each select="*/glossentry"> <li> <h2><xsl:value-of select="glossterm"/> (<xsl:value-of select="abbrev/emphasis"/>)</h2> <div><xsl:value-of select="*/para"/></div> </li> </xsl:for-each> </ul> </xsl:template> <xsl:template match="/"> <html> <body> <xsl:apply-templates/> </body> </html> </xsl:template></xsl:stylesheet>\[/code\]But it show all other text that was inside xml as text. What's need to be added or change to only show something like this?\[code\]<html><body><ul><li> <h2>Term (abbrev)</h2> <div>Para</div></li><li> <h2>Term2 (abbrev2)</h2> <div>Para2</div></li>...</ul>\[/code\]