Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 8th, 2007, 09:32 AM
Registered User
Join Date: Feb 2007
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

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

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