Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 8th, 2007, 09:32 AM
Registered User
Join Date: Feb 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default XML element referencing to other xmls

Hello community,

I hope the experts can help me to have some solutions for my problem:
I am working with saxon8 and windowsxp.
It is given a xml in which the element "widget" reference to the next xml document, with its attributes, so I must load this xml and look if the "widget" element is present and do the same again.
The element looks like that:

<Widget Name="PremiumCombiView_Audio_CD" FileNamePrefix="PremiumCombiView_Audio_CD" UniqueID="126551782039362000" Path="Container">

For this example the xml lies under
The attribute "UniqueID" is unique for the xml document.

So far thats no problem, i can solve this with a recursive template, but there can be more than one "widget" element in a xml, so i find only the first element, enter the next xml document and so on. You can imagine that it can be a large branch of "links".
Hera is a rough scratch:

XML1 | XML2 | XML3 | XML (x) Level

Widget--->Widget--->Widget (1)
     | |->Widget-->Widget (2)
     |->Widget------------>Widget (3)

How can i solve it to enter each xml and collect all "widget"s ?
Should I collect all "widget" of level 1 and than level 2, but I lost the context, what is already collected ? Should I use a variable in which I save the not collected "widget" elements?

I hope you understand my problem.
Thank you for your postings.

Kind regards
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grouping xmls sac XSLT 4 July 29th, 2008 04:16 AM
Multiple xmls and xsls pasupathy.b XSLT 6 June 4th, 2007 01:07 PM
Converting XML to XML (making element mandatory) boondocksaint20 XSLT 8 April 28th, 2006 10:54 AM
Help in referencing xml element in xsl using ("")? klipss XSLT 2 July 28th, 2005 03:38 AM
Referencing multiple XML documents... qornboy XML 3 October 9th, 2003 09:40 AM

All times are GMT -4. The time now is 06:40 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.