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

Re: question about generate-id()

Subject: Re: question about generate-id()
From: Dave Pawson <davep@xxxxxxxxxxxxx>
Date: Sat, 7 Aug 2010 07:16:44 +0100
Re:  question about generate-id()
On Fri, 06 Aug 2010 12:29:42 -0400
"G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> wrote:

> I don't follow your argument, Dave.  An input document's identifiers 
> have *no* relationship to generate-id().

Lets agree to differ on that one then Ken. 


> 
> Consider this:  if your reasoning that generate-id() must produce a 
> value set exclusive of the xml:id values to ensure that id values in 
> the output are unique,

No, I haven't said that. 

 this falls apart when you consider that the 
> aggregation of two documents where each are independently (and 
> validly) using the same value for xml:id=. 

Agreed. I won't go into how. I'm suggesting that amongst the present
xml:id values in the input document, the generated id values must
be as defined, i.e. unique. 


> However, if you follow my rule of thumb that *every* xml:id= or id= 
> or ID-typed attribute named prod= (for example) is translated to 
> output using the generate-id() for that node ... and every reference 
> to those identifiers is replaced with the generated identifier for 
> the referenced node, then the references will be both preserved and 
> unambiguous in the result.

which is a lot of work. Fine if you want to do it. 

> 
> As to the earlier comment contributed regarding pointers from outside 
> of the document to inside the document,
oo scope IMHO

> 
> Therefore, generate-id() is necessarily independent of any knowledge 
> of any content. 

In which case it's badly named Ken. Quite unlike James?





-- 

regards 

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

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.