[~][9:23pm] more bib.xml <bibliography> <book> <title>t1</title> <author>a1</author> <author>a2</author> </book> <paper> <title>t2</title> <author>a3</author> <author>a4</author> </paper> <book> <title>t3</title> <author>a5</author> <author>a6</author> <author>a7</author> </book> </bibliography> [~][9:23pm] more bib.xsl <?xml version='1.0'?> <xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'> <xsl:template match="/"> <answer> <xsl:apply-templates/> </answer> </xsl:template> <xsl:template match="/bibliography/*"> <result> <xsl:value-of select="author"/> </result> </xsl:template> </xsl:stylesheet> [~][9:23pm] java oracle.xml.parser.v2.oraxsl bib.xml bib.xsl <?xml version = '1.0'?> <answer> <result> a1</result> <result> a3</result> <result> a5</result> </answer>
An example of xml and xsl files in a public_html directory is available at classes.xml
Page Maintained by