[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Managing cross references when combining XML files

Subject: Re: Managing cross references when combining XML files into one document
From: "Robert Koberg" <rob@xxxxxxxxxx>
Date: Fri, 29 Dec 2006 10:28:37 -0500
Re:  Managing cross references when combining XML files
On Fri, 29 Dec 2006 09:15:27 -0500, Trevor Nicholls
<trevor@xxxxxxxxxxxxxxxxxx> wrote:

The difficulties lie on the import side. Here the lookup to the target
id is
not possible because that id (probably) is not in the initial input file
but
in one of the included documents. If I had control over the XSL steps I
could execute a second stylesheet to do a second pass after the document
had
been fully expanded, but I can only invoke a single XSL step and I don't
know how to do two-stage processing, or even if it is possible. An
alternative option would be to treat all links as external (even when
they
point to an internal element in the expanded file) but to do this I need
to
know the document filename. Again, if I had control of the XSL steps I
could
pass the name in a parameter, but I don't and I can't. Is there a smart
way
of accessing the document name (it would become a Xalan-specific
question at
this point)?

Are you saying framemaker limits you to a one pass transformation?


Are you getting the source files from a local/network filesystem? Or some
kind of web service/application?

Is this for a single user or multiple? If multiple users, how would you
manage document locking?

What happens if a link @ref/@idref references a parent/ancestor document?

But anyway :) -- can you create a lookup XML that maps the idref's to
URI's? Then you could just pull in that lookup with the document function
and resolve the URIs.

Or, you could setup a webapp that you would call from the transformation
(e.g.
document(http://myapp/resolver?idref=xxx (or ?src=yyy))

and return the necessary XML. This would also allow a central place for
document locking and perhaps a way to check for recursive document
inclusion.

best,
-Rob


Thanks for any advice Trevor

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.