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

RE: Random indexing into a comma seperated list

Subject: RE: Random indexing into a comma seperated list
From: Dan Diebolt <dandiebolt@xxxxxxxxx>
Date: Thu, 3 May 2001 16:36:30 -0700 (PDT)
xml tag comma
Thanks. I will take a look at the solution.

>Doesn't embedding comma-separated lists into your elements defeat the
>purpose of ML?

I don't control the format of the incoming XML. BTW, this problem 
occurs in abundance with SVG.

>If I had to do it, I would define a template that could "return" a specified
>element in the list and call that template each time I needed to "randomly"
>access an element. This is hardly efficient. 

It is the inefficiency and verbosity I was hoping to avoid while staying
portable. I was hoping someone might have a breakthrough thought
like the Muenchian technique for grouping. But you nailed the problem
on its head - I have islands of non-XML data I need to address/index
into and I may be forced to recurse for each item. If anyone
else has a thought, I would appreciate it because my application has
a fair amount of these comma separated lists. Before closing out this
inquiry I would like to get a few opinions.

One thought I am considering is doing the tranformation in two steps.
First step would be to roll all of the csv items into <i> tags and in
the second pass perform my custom processing on purified XML:

<tag>1,2,$19.95,4,five</tag>

<tag><i>1</i><i>2</i><i>$19.95</i><i>4</i><i>five</i></tag>

The only hitch here is that there is no DTD or schema and I don't
know all of the tag names a priori without a pretty substantial 
analysis of the instance documents. What do the experts say?

Regards,

Dan

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

 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.