[jdom-interest] xml xsl

Sebouh Hamakorzian sebouh_hamakorzian at edu.aua.am
Thu Apr 18 08:03:23 PDT 2002


hi all

i have this xml and xsl file
plz send me a sample how to transform it from java file using jdom

<?xml version="1.0"?>

<?xml:stylesheet type="text/xsl" href="listprojects.xsl" version="1.0"
encoding="UTF-8"?>

<projects>
	<project name="project1" manager="Sebouh" created="01/04/2002" />
	<project name="aproject2" manager="Team2" created="18/04/2002" />
</projects>


<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/TR/WD-xsl">

<xsl:template match="/">

<select name="pname">

  <xsl:for-each select="projects/project">

    <xsl:element name="option">
      <xsl:attribute name="value"><xsl:value-of
select="@name"/></xsl:attribute>
	<xsl:value-of select="@name"/>
    </xsl:element>

   </xsl:for-each >

</select>

</xsl:template>


</xsl:stylesheet>





thank you




More information about the jdom-interest mailing list