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

RE: Complex splitting of XML tag to multiple other XML

Subject: RE: Complex splitting of XML tag to multiple other XML tags using XSL T
From: Lars Eskildsen <laes@xxxxxxxxx>
Date: Thu, 24 Oct 2002 10:44:59 +0200
xml splitting
Hi'

Thank you for your answer!

>> <!ELEMENT lines (TeleLine, InetLine)+>
>> That says TeleLine and InetLine elements occur in pairs.

>> <TeleLine>
>>      <text2>TTT1</text2>
>> </TeleLine>
>> <TeleLine>
>>      <text1>TTT2</text1>
>> </TeleLine>
>> So this document is invalid.

The DTD line for the <lines> tag had a typo error - 
it should of course be:

<!ELEMENT lines (TeleLine | InetLine)+>

Also the line 
<!ATTLIST AD SEQ CDATA (U|S|M|E) #REQUIRED>

should have been:
<!ATTLIST AD SEQ (U|S|M|E) #REQUIRED>

My mistake. Sorry!

>> It would help if you worked on teh clarity of the specification a bit.
>> What does all this stuff mean?

In plain words we need the split the customer <ADLIST> tag (a
tag that really contains the structure and text of a list of ads) into
several individual <AD> tags in our own XML format.
This splitting should only occur in very specific circumstances and should
only be applied in a very specific way, which is what the specification tries
to explain.

Anyways - all the specification stuff aside - can you/anyone help me with the XML example
i included (this example covers most - if not all - of the special cases we should
meet).

>> keys may make the solution far more efficient, but they are never
>> essential.  Get the algorithm right first, then think about the
>> implementation.

Since im really, really stuck - i'll take anything that works!!

My beer offer still stands!

/Lars

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.