Yes please, I would appreciate if you could offer more help. It is not
clear to me how to do that.
I think I understand this code: <xsl:variable
Basically we use it to load the AllSurveys.xml. One question though,
could I change the path like:
Now after this doc is loaded how do i compare its nodes with the other
if the children of the Document element Surveys (AllSurveys.xml) =3D
children of document element Surveys (ThisUserSurvey.xml )
write them to the output
I do not understand how to do that!
>Subject: Re: TWO XML DOCS CONTINUED
>From: "Lisa Slater Nicholls" <lisa@s...>
>Date: Sat, 21 Sep 2002 01:58:01
>So, I think it would be better to pass the ThisUserSurvey.xml as a =3D
parameter to this specific transformation.
How do I do something like this:
I'm not entirely sure that this is the best way, from what you're
Claudio. If the larger document is on disk, then you could put it in as
top-level variable like this:
Now it can be compiled into a template object for all transforms. At
runtime, make the ThisUserSurvey.xml document your source.
If this seems backwards to you, you can do it the other way around
(ThisUserSurvey can be the lookup and you run the transform on
AllSurveys) -- but then you can't compile the larger document into the
template, you have to load the changing, single user documents up into
xsl:param for each transform.
It's hard to say which would give you better performance -- for one
I don't know the relative sizes of these documents! <s>
Meanwhile, to answer your question, you refer to the loaded document (no
matter which one it is)like this: $lookupSurveys. You can use XPath on
this, just as you would for the normal document. For example, you could
This example is not taken from the XML that you show because, to be
honest, I'm not taking the time to look at them. <s> If this explanation
doesn't help enough, I'll try again when I have more time.
http://www.bmrb.co.uk +44 (0)20 8566 5000
This message (and any attachment) is intended only for the recipient and
may contain confidential and/or privileged material. If you have
received this in error, please contact the sender and delete this
message immediately. Disclosure, copying or other action taken in
respect of this email or in reliance on it is prohibited. BMRB
International Limited accepts no liability in relation to any personal
emails, or content of any email which does not directly relate to our