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

Re: Generate tab-delimited file

Subject: Re: Generate tab-delimited file
From: James Melton <james.melton@xxxxxxxxxxx>
Date: Thu, 05 Jul 2001 11:53:55 -0400
tab delimited file example
Benoit,

Looking at your first example:

<?xml version="1.0"?>
<topic>
        <id>123</id>
        <dob>
                <Year>2001</Year>
                <Month>07</Month>
                <Day>01</Day>
        </dob>
        <b>Item</b>
        <c code="12">xyz</c>
        <d code="34"></d>
        <e/>
</topic>

you want to identify columns headers as:
  id      dob     b       c       d       e 

I see nothing in the rule you describe below that implies you should
keep "d" or "e" as column headers in the example above. I think that's
part of what is meant by "under specified".

Jim.


Benoit_Aumars@xxxxxxxxxxxx wrote:
> 
> David,
> 
> Thanks.
> 
> > > 2. but if I have something like this
> > I haven't tried to answer that as it is completely under specified,
> > which elements you need to produce headers and which elements you
> > ignore and process children.
> >
> 
> Assume I have this :
> <f>
>     <g>
>         <Year>2001</Year>
>         <Month>07</Month>
>         <Day>31</Day>
>     </g>
> </f>
> 
> the header generated is <g> with row data 20010731 ( ignore <f> ).
> 
> If I have :
> <x>
>    <y>
>        <z>
>            <Year>2001</Year>
>            <Month>07</Month>
>            <Day>31</Day>
>        </z>
>    </y>
> </x>
> the header generated is <z> with row data 20010731 ( ignore <x> and <y> ).
> 
> If I have
> <f>
>     <g>
>          blah blah
>     </g>
> </f>
> the header generated is <g> with row data 'blah blah' ( ignore <f> ).
> 
> If I have :
> <x>
>    <y>
>        <z>
>             blah blah
>        </z>
>    </y>
> </x>
> the header generated is <z> with row data 'blah blah'( ignore <x> and <y> ).
> 
> Correct me if I'm wrong, it sounds like :
> if the context node is 'Year' or 'Month' or 'Day', select the name of its
> parent,
> if not select its name.
> 
> Cheers,
> Benoit Aumars.
> 
> ************************************************************
> JLT Management Services Limited
> 6 Crutched Friars, London EC3N 2PH. Co Reg No 1536540
> Tel: (44) (0)20 7528 4000   Fax: (44) (0)20 7528 4500
> http://www.jltgroup.com
> ------------------------------------------------------------
> The content of this e-mail (including any attachments) as
> received may not be the same as sent. If you consider that
> the content is material to the formation or performance of
> a contract or you are otherwise relying upon its accuracy,
> you should consider requesting a copy be sent by facsimile
> or normal mail.  The information in this e-mail is
> confidential and may be legally privileged. If you are not
> the intended recipient, please notify the sender immediately
> and then delete this e-mail entirely - you must not retain,
> copy, distribute or use this e-mail for any purpose or
> disclose any of its content to others.
> 
> Opinions, conclusions and other information in this e-mail
> that do not relate to the official business of JLT
> Management Services Limited shall be understood as neither
> given nor endorsed by it.  Please note we intercept and
> monitor incoming / outgoing e-mail and therefore you should
> neither expect nor intend any e-mail to be private in nature.
> 
> We have checked this e-mail for viruses and other harmful
> components and believe but not guarantee it virus-free prior
> to leaving our computer system.  However, you should satisfy
> yourself that it is free from harmful components, as we do
> not accept responsibility for any loss or damage it may
> cause to your computer systems.
> ************************************************************
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

-- 

____________________________________________________________
James Melton                 CyLogix
609.750.5190                 609.750.5100
james.melton@xxxxxxxxxxx     www.cylogix.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.