|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Tree view structure as output - using xsl - from xml tree
hi
could u anyone tell me how to get tree view structure - using xsl code from given xml. xml::: code below ================== <?xml version="1.0"?> <TreeRoot> <Term> one <LowerTerm1> two </LowerTerm1> <LowerTerm1> three </LowerTerm1> <LowerTerm1> four <LowerTerm2> five </LowerTerm2> <LowerTerm2> six </LowerTerm2> </LowerTerm1> </Term> </TreeRoot> =================== and i would like to have out put +one -if i click this it should expand and show below +two +three +four +five +six ============== just like opening .xml file in browser i did some code - but it is limited to only one <Term> but i want to have n-number of <Term> s i paste my xsl code below ========================= <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl utput method="xml" omit-xml-declaration="yes" indent="yes" encoding="utf-8" cdata-section-elements="DrugName SynonymName CheckName SynonymType CompoundName ActionName ActionTree CurrDevCompanyName CurrDevParentName CurrDevDrugCompanyRelationship Country DevelopmentStatus CurrDevDevelopmentStatusCode CurrDevIndicationName IndicationTree AssigneeList InventorsList ActionName ActionTree IndicationName IndicationTree "/><xsl:template match="/"> <Term> <xsl:value-of select="TreeRoot/Term/text()"/> <LowTerm1> <xsl:value-of select="TreeRoot/Term/LowerTerm1/text()"/> <LowTerm2> <xsl:value-of select="TreeRoot/Term/LowerTerm1/LowerTerm2/text()"/> </LowTerm2> </LowTerm1> </Term> </xsl:template> </xsl:stylesheet> ========================== any help or suggestion much appreciated regards niha |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Tree view structure as output - using xsl - from xml tree |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|