xsl-list
[Top] [All Lists]

Re: [xsl] Merging two sets of files

2012-04-03 10:01:41
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/03/2012 04:55 AM, Emma Burrows wrote:
I can see that I'll probably need a process with an intermediate
step, perhaps using lookup.xml to guide the processing so I can group
records with the same catalogue id. But the only trouble with that is
what to do with records that don't appear in lookup.xml...

I think you are thinking too procedurally.  Keep in mind that XSLT is
not really a “first this, then that” language.  If you can rethink your
problem in terms of “this output depends on this input,” you should be
able to do it in one step, e.g.: for each record in lookup, generate a
standalone document; if a record in book.xml corresponds to it, include
the book.xml record.

~Chris
- -- 
Chris Maden, text nerd  <URL: http://crism.maden.org/ >
“Be wary of great leaders.  Hope that there are many, many small
 leaders.” — Pete Seeger
GnuPG fingerprint: DB08 CF6C 2583 7F55 3BE9  A210 4A51 DBAC 5C5C 3D5E
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPexCMAAoJEEpR26xcXD1eJLQIAMrCkdLgFUX6iDGUCJYQZDRa
nWnSpsy/cO6DDdCLgn2NTYyC4XIHpdJzkoTligT/wmgBMj46DK3kUI5yls3UBqiG
z3WVS65Kle52nGgvJzY0GMv2BLQYGehjWuPGJsWd2V6beVACsNUT+C/LMhuABxu0
JIlTyFVXOjOKbL3M3FQ1m9ctZvoXobVA9o6e196+TFK+sMA2Qg4JMlAwrVOY3uy+
HVQWrH+I3E1Zi8jOhqjmqL+2kEaXyKXwFSJd5jq0bTU7M0o6eNBwZ2qCPQeqLjjO
tFN/zHEHsfyWV1gn1YeCdNVHvEGmWvvxnU5GmTtt4fN5z7c4mIAm8/FJzYMbaNY=
=eXnk
-----END PGP SIGNATURE-----

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


<Prev in Thread] Current Thread [Next in Thread>