944,070 Members | Top Members by Rank

Ad:
Jan 31st, 2007
0

XML Tranformations

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hanifa is offline Offline
22 posts
since Jul 2006
Jan 31st, 2007
0

Re: XML Tranformations

qwerty beelzebub buzzword gobbling froobs.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Jan 31st, 2007
0

Re: XML Tranformations

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hanifa is offline Offline
22 posts
since Jul 2006
Feb 8th, 2007
0

Re: XML Tranformations

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..
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hanifa is offline Offline
22 posts
since Jul 2006
Feb 8th, 2007
0

Re: XML Tranformations

Just Changing to Solution Icon...
Solution is in the above thread.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hanifa is offline Offline
22 posts
since Jul 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in XML, XSLT and XPATH Forum Timeline: Create proxy class from WSDL (.net & java)
Next Thread in XML, XSLT and XPATH Forum Timeline: Integrated Windows Security





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC