Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 17th, 2005, 01:58 PM
wu4 wu4 is offline
Registered User
 
Join Date: Oct 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default help with class hierarchy

Here is my xml file. What I want to do is: For every class that is subclass of other class, delete it from classes/class and all its children become the children of subclass with same name in classes/class/subclass
Code:
<classes>
   <class name="Allele">
      <Parameter name="mean_s">
         <Type name="mutation_t"/>
         <Value name=" 0.05"/>
      </Parameter>
   </class>
   <class name="Chromosome">
      <subclass name="ChromosomeCompact"/>
      <subclass name="ChromosomeExplicit"/>
      <subclass name="ChromosomeImplicit"/>
   </class>
   <class name="ChromosomeCompact">
      <Parameter name="c">
         <Type name="chromosomelength_t"/>
         <Value name=""/>
      </Parameter>
   </class>
   <class name="ChromosomeExplicit">
      <Parameter name="c">
         <Type name="chromosomelength_t"/>
         <Value name=""/>
      </Parameter>
   </class>
   <class name="ChromosomeImplicit">
      <Parameter name="c">
         <Type name="chromosomelength_t"/>
         <Value name=""/>
      </Parameter>
   </class>
</classes>





Similar Threads
Thread Thread Starter Forum Replies Last Post
TREE / HIERARCHY pallone XSLT 3 June 13th, 2008 07:45 AM
graphics class hierarchy using c++ chandankumarbehera C++ Programming 1 December 9th, 2003 06:38 AM
Namespace Hierarchy projectedNexus BOOK: ASP.NET Website Programming Problem-Design-Solution 1 August 6th, 2003 09:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.