ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
tool recommendation for transformation project
by Archie Russell other posts by this author
Jul 26 2000 1:07PM messages near this date
view in the new Beta List Site
parser, checkparser | Re: tool recommendation for transformation project
hi, i'm looking for a tool recommendation for the following project.  the
tool needs
to run on solaris.

i have a large volume of xml (and a lot of compute power too) which i need
to transform
into a simple non-xml format.

the xml is somewhat like this

<a> 
   big a here
	<b> xxx</b>
	<c> yyy<c>
</a> 

it needs to map to something like

-A- big a here
-B- xxx
-C- yyy
-end-

but, <a>  tags can be nested.  so we have something like

<a> 
   big a here
	<b> xxx</b>
	<c> yyy<c>
	<a> 
  	little a here
		<c> zzz<c>
	</a> 
</a> 

that maps to 

-A- big a here
-B- xxx
-C- yyy
-end-
-A- little a here
-B- xxx
-C- zzz
-end-

the tricky part is, the <a>  tags that are further down _sometimes_ "inherit"
elements from the ones that are further up in the heirarchy.   i also need
to do a little manipulation of the cdata, say upcase all the letters.

anyway, i need a tool that will help me out.  i've been using xml::parser,
but it is a little
tedious.  is axkit appropriate?  some other xslt?  will they be able to do
this kind of thing?

help greatly appreciated,
archie
Thread:
Archie Russell
Tylman Ule
Matt Sergeant

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved