RE: [xsl] equivalent for 'while'

Subject: RE: [xsl] equivalent for 'while'
From: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx>
Date: Thu, 17 Feb 2005 10:17:44 -0000
It's not immediately obvious how you arrived at your output, for example
where does the SubConcept/id value of '11000' come from?  It looks as
through all you want to do is extract the correct id's from 'Document
2'... but your example doesn't lend itself to a quick reply :)

cheers
andrew

> I've done a small but complete snippet of doc 1, doc 2 and
> the resulting
> doc 2 I'd like in order to compare the two files.
>
> -------------------- Document 1------------------------
>
> <Top>
>     <PrimeConcept id="at0000" type="EVALUATION">
>         <PrimeName>Pain</PrimeName>
>         <SubPrimeConcept id="at0003">Headache</SubPrimeConcept>
>     </PrimeConcept>
>     <SubConcepts>
>         <SubConcept id="at0027" name="Severity">
>             <Value
> type="TEXT">[MildSeverity,ModerateSeverity,SevereSeverity]</Value>
>         </SubConcept>
>     </SubConcepts>
> </Top>
>
>
>
> ---------------------- Document 2 --------------------------------
>
> <?xml-stylesheet type="text/xsl" href="file://C:\Document2.xsl"?>
>
> <TOP id="1000" name="Thing">
>  <DEFCONCEPT id="10180" name="Pain">
>         <PARENT>
>             <CONCEPT name="ExternalStimulusSensation" ref="10181"/>
>         </PARENT>
>         <CHILD>
>             <CONCEPT name="HeadPain" ref="10235"/>
>         </CHILD>
> </DEFCONCEPT>
>
>  <DEFCONCEPT id="10235" name="HeadPain">
>         <PARENT>
>             <CONCEPT name="Pain" ref="10180"/>
>         </PARENT>
>         <CHILD>
>             <CONCEPT name="Headache" ref="10279"/>
>         </CHILD>
>  </DEFCONCEPT>
>
>   <DEFCONCEPT id="10279" name="Headache">
>         <PARENT>
>             <CONCEPT name="HeadPain" ref="10235"/>
>         </PARENT>
>   </DEFCONCEPT>
>
>   </TOP>
>
>   ------------------------ Resulting Document
> 2------------------------
>
>   <Top>
>     <PrimeConcept id="10180" type="none">
>         <PrimeName>Pain</PrimeName>
>         <SubPrimeConcept id="10279">Headache</SubPrimeConcept>
>     </PrimeConcept>
>     <SubConcepts>
>         <SubConcept id="11000" name="Severity">
>             <Value
> type="TEXT">[MildSeverity,ModerateSeverity,SevereSeverity]</Value>
>         </SubConcept>
>     </SubConcepts>
> </Top>

Current Thread