User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the XML, XSLT and XPATH section within the Software Development category of DaniWeb, a massive community of 374,023 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,775 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our XML, XSLT and XPATH advertiser:
Views: 2195 | Replies: 4 | Solved
Reply
Join Date: Jul 2006
Posts: 22
Reputation: hanifa is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
hanifa hanifa is offline Offline
Newbie Poster

Help XML Tranformations

  #1  
Jan 31st, 2007
Hi this is my first paste...
http://paste.plone.org/12700 [Contains my input.xml and transform.xslt and output file it generated.
http://paste.plone.org/12706 .. this contains my new input.xml file..
And in here, all the Activitiy's tag attributes are being rewritten as children.
And here is the xslt which i tried to write and failed...
http://paste.plone.org/12708..

Primarily the main difference, was that in 12700 i was using Activity@routeattri as the key and used it to do the separtion..
But I wanna change it to Activity/routetag as the key now and do the same..

I think the change shld be little but I jez cant seem to figure it out..

Thanks for any help rendered.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,588
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 187
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: XML Tranformations

  #2  
Jan 31st, 2007
qwerty beelzebub buzzword gobbling froobs.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Join Date: Jul 2006
Posts: 22
Reputation: hanifa is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
hanifa hanifa is offline Offline
Newbie Poster

Help Re: XML Tranformations

  #3  
Jan 31st, 2007
Hi, let me rephrase the question to make it more comprehendable.

Initially, I had input file with this format.
<Activity routeattr="4ID">
but later I had changed it to
<Activity>
<routetag>4ID</routetag>..
The XSLT has to slightly tinkered to allow this modification.

This paste contains Orginal input.xml, transform.xsl and output.xml file
http://paste.plone.org/12700

The modiifcation as I mentioned above is that Activity's attribute is swapped to become the Activity's Child.
In this below paste, I have given the new input.xml, transform.xsl( I have highlighted the changes with "CHANGE HERE" comments) and the output.xml file which
http://paste.plone.org/12726

As you can see, the output inside the <route> in the output.xml is different in the 2 output.xml files.
Instead of
<route>
<t>Email</t>....
</route>
I gotten this instead
<route>
4ID....
</route>

I hope I have tried my best to clarify my problem as much as I can.
Thanks for any help.

Regards
Reply With Quote  
Join Date: Jul 2006
Posts: 22
Reputation: hanifa is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
hanifa hanifa is offline Offline
Newbie Poster

Re: XML Tranformations

  #4  
Feb 8th, 2007
Hi guys, finally found a solution to my problem. If you guys are interested, U cud chk out the solution here...
http://forums.asp.net/thread/1557045.aspx

Cheers again..
Reply With Quote  
Join Date: Jul 2006
Posts: 22
Reputation: hanifa is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
hanifa hanifa is offline Offline
Newbie Poster

Solution Re: XML Tranformations

  #5  
Feb 8th, 2007
Just Changing to Solution Icon...
Solution is in the above thread.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb XML, XSLT and XPATH Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the XML, XSLT and XPATH Forum

All times are GMT -4. The time now is 11:25 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC