[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSLT - help

Subject: XSLT - help
From: Chandrasekhar A <chandrashekarrvt@xxxxxxxxx>
Date: Tue, 15 Nov 2005 10:17:58 +0530
image idx
Hello,

     I am trying to write XSLT code. But I struck in coding. Please
can any help me.

My Souce XML:
<?xml version="1.0" encoding="UTF-8"?>
<dataroot xmlns:od="urn:schemas-microsoft-com:officedata"
generated="2005-10-20T18:45:32">
      <TT_Reference_Tree>
              <childidx>1</childidx>
              <imageidx>6</imageidx>
              <levelidx>l_0000000001</levelidx>
              <parentidx>root</parentidx>
              <treedata>OPERATION &amp; MAINTENANCE EXCHANGE</treedata>
              <itemtype>1</itemtype>
              <shortname/>
      </TT_Reference_Tree>
      <TT_Reference_Tree>
              <childidx>1</childidx>
              <imageidx>6</imageidx>
              <levelidx>l_0000000002</levelidx>
              <parentidx>l_0000000001</parentidx>
              <treedata>OPERATION/ADMINISTRATION FUNCTIONS EXCH.</treedata>
              <itemtype>1</itemtype>
              <shortname/>
      </TT_Reference_Tree>
      <TT_Reference_Tree>
              <childidx>1</childidx>
              <imageidx>6</imageidx>
              <levelidx>l_0000000003</levelidx>
              <parentidx>l_0000000002</parentidx>
              <treedata>CONNECTION ADMINISTRATION</treedata>
              <itemtype>1</itemtype>
              <shortname/>
      </TT_Reference_Tree>
      <TT_Reference_Tree>
              <childidx>1</childidx>
              <imageidx>6</imageidx>
              <levelidx>l_0000000004</levelidx>
              <parentidx>l_0000000003</parentidx>
              <treedata>CENTRALIZED BACKUP AND RESTORE MAINT.</treedata>
              <itemtype>1</itemtype>
              <shortname/>
      </TT_Reference_Tree>
      <TT_Reference_Tree>
              <childidx>-1</childidx>
              <imageidx>2</imageidx>
              <levelidx>l_0000000005</levelidx>
              <parentidx>l_0000000004</parentidx>
              <treedata>Save CBR APS on MP</treedata>
              <itemtype>0</itemtype>
              <shortname>SAVECBRAPSMP</shortname>
      </TT_Reference_Tree>
      <TT_Reference_Tree>
              <childidx>-1</childidx>
              <imageidx>2</imageidx>
              <levelidx>l_0000000006</levelidx>
              <parentidx>l_0000000004</parentidx>
              <treedata>Execute CBR Begin</treedata>
              <itemtype>0</itemtype>
              <shortname>EXECCBRBEG</shortname>
      </TT_Reference_Tree>
      <TT_Reference_Tree>
              <childidx>-1</childidx>
              <imageidx>2</imageidx>
              <levelidx>l_0000000007</levelidx>
              <parentidx>l_0000000004</parentidx>
              <treedata>Execute CBR End</treedata>
              <itemtype>0</itemtype>
              <shortname>EXECCBRE</shortname>
      </TT_Reference_Tree>
</dataroot>

My Desctination XML:

<?xml version="1.0" encoding="UTF-16"?>
<Tasktree xmlns:fo="http://www.w3.org/1999/XSL/Format">
<Folder name="OPERATION &amp; MAINTENANCE EXCHANGE">
      <Folder name="OPERATION/ADMINISTRATION FUNCTIONS EXCH">
              <Folder name="CONNECTION ADMINISTRATION">
                      <Folder name="CENTRALIZED BACKUP AND RESTORE MAINT">
                              <Task>SAVECBRAPSMP</Task>
                              <Task>EXECCBRBEG</Task>
                              <Task>EXECCBRE</Task>
                      </Folder>
              </Folder>
      </Folder>
</Folder>
</Tasktree>


  If childidx is 1, then it is folder, otherwise it is task.
Thanks and Regards,
Chandu

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.