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

Re: Re: How to handle dynamic XPath

Subject: Re: Re: How to handle dynamic XPath
From: fred@xxxxxxxxxxxxx
Date: Tue, 14 Apr 2009 09:10:22 +0200
Re:  Re: How to handle dynamic XPath
Ken Holman wrote:

You mentioned you have a parallel document that implies you do, in
fact, know the structure of the documents.

Not at design time. The structure must be infered by the XSLT script from the XML Schema of the default and output document. So a key table also should be constructed from the schema by the script.

I am using XSLT to walk through an XML Schema to construct an Xforms
(output) instance.
In parallel I am scanning an (input) instance (of a document defined
by the schema) to
include default values in the form.

Would this not reassure you that the default instance document has
the same document structure as the instance you are creating?

Yes they both have the same structure, although the Default document does not need to contain all elements.

Nevertheless you can modify my suggested key approach to use any
lookup value for the default values and then access those default
values from the loaded key table.

Will look into that. Thanks!


Fred van Blommestein

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.