Subject: Re: How would you add depth to this flat XML source? From: "Eric G. Bosch" <eric@xxxxxxxxxxx> Date: Fri, 26 May 2000 10:35:27 -0400 (EDT) |
Jeni, Thank You very much for the feedback. Your solution works like a charm. I am now happily adding depth to many large, flat documents. Also, thanks for taking the time to explain your response in such detail. That was definitely a great learning exercise for me and hopefully other list readers as well. My own solution, which was failing, tracked yours exactly until this bit: > From: Jeni Tennison <Jeni.Tennison@xxxxxxxxxxxxxxxx> > > Now we get into a bit of a murky area that I got confused by myself > recently. We want to make sure that the *node* that is 'the first > preceding-sibling that is a firstitem' is the same as the *node* that is > 'the current node'. There are two ways of doing that: > > a. generate a unique identifier for the two nodes and compare them: > > generate-id(preceding-sibling::firstitem[1]) = generate-id(current()) This addition turned out to be the glue that made it work! I should have known from all of the recent generate-id() traffic on the list that it would figure into the solution somehow! Thanks again, Eric ---------- Eric Bosch Clinical DataFax Systems Inc. Voice: 905.522.3282.x223 Fax: 905.522.7284 Email: eric@xxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: How would you add depth to this, Jeni Tennison | Thread | I have the diff files to modify XT , Khun Yee Fung |
Newbie Question: call-template name, jkraai | Date | Problem passing params with XALAN-C, Niall Kavanagh |
Month |