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

Re: up-converting

Subject: Re: up-converting
From: Jim_Albright@xxxxxxxxxxxx
Date: Fri, 20 Aug 2004 16:11:52 -0400
up converting
Well it took me one transformation to get rid of formatting info, one 
transformation per div level, plus one transformation for clean up at the 
end but I have it working now. Anyone else interested in code can reach me 
off list.

starting with
<document>
        <a>xxxxxxx</a>
        <b>level1 head ----------</b>
        <c>level 2  head 00000</c>
        <!-- no pattern in following content -->
        <dfg>1111 blah</dfg>
        <e>2222 blah</e>
        <f>blah</f>
        <c>level 2 head 33333</c>
        <df>44444 blah</df>
        <d>level 3 head 5555</d>
        <i>66666blah</i>
        <j>blah</j>
        <c>level 2 head 777777</c>
        <df>888888 blah</df>
        <e>blah</e>
        <f>blah</f>
        <b>level 1 head 99999</b>
        <c>level 2  head 1010101010</c>
        <df>11 11 11 11  blah</df>
        <e>blah</e>
        <f>blah</f>
</document>

and ending up with
<?xml version="1.0" encoding="UTF-8"?>
<document>
        <title>xxxxxxx</title>
        <div>
                <title>level1 head ----------</title>
                <div>
                        <title>level 2  head 00000</title>
                        <dfg>1111 blah</dfg>
                        <e>2222 blah</e>
                        <f>blah</f>
                </div>
                <div>
                        <title>level 2 head 33333</title>
                        <df>44444 blah</df>
                        <d>level 3 head 5555</d>
                        <i>66666blah</i>
                        <j>blah</j>
                </div>
                <div>
                        <title>level 2 head 777777</title>
                        <df>888888 blah</df>
                        <e>blah</e>
                        <f>blah</f>
                </div>
        </div>
        <div>
                <title>level 1 head 99999</title>
                <div>
                        <title>level 2  head 1010101010</title>
                        <df>11 11 11 11  blah</df>
                        <e>blah</e>
                        <f>blah</f>
                </div>
        </div>
</document>


Jim Albright
704 843-0582
Wycliffe Bible Translators

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.