This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Same name Elements in more than one node


Mike Ferrando wrote:


> <C01>
> 
> <C02>
>   <DID>
>     <UNITTITLE>
>       <PERSNAME ENCODINGANALOG="100$a">Baylor, Eugene W.</PERSNAME>
>       <PERSNAME ENCODINGANALOG="700$a">Baylor, G. W.</PERSNAME>
>     </UNITTITLE>
>   </DID>
>   <C03>
>     <DID>
>       <CONTAINER TYPE="BOX"></CONTAINER>
>       <UNITTITLE ID="PV1624">
>         <TITLE>Exquisite waltz</TITLE>
>         <GEOGNAME ENCODINGANALOG="260$a">Louisville</GEOGNAME>
>         <CORPNAME ENCODINGANALOG="260$b">Peters, Webb &amp;
> Co.</CORPNAME>
>         <UNITDATE ENCODINGANALOG="260$c">1855</UNITDATE>
>       </UNITTITLE>
>     </DID>
>     <ODD>
>       <P>
>         <SUBJECT>Piano</SUBJECT>
>       </P>
>     </ODD>
>   </C03>
> </C02> 
> 
> <C02>
>   <DID>
>     <UNITTITLE>
>       <PERSNAME ENCODINGANALOG="100$a">Abbott, Frank</PERSNAME>
>     </UNITTITLE>
>   </DID>
>   <C03>
>     <DID>
>       <CONTAINER TYPE="BOX"></CONTAINER>
>       <UNITTITLE ID="PV1">
>         <TITLE>Cornell grand march</TITLE>
>         <GEOGNAME ENCODINGANALOG="260$a">[S.I.]</GEOGNAME>
>         <CORPNAME ENCODINGANALOG="260$b">Frank Abbott</CORPNAME>
>         <UNITDATE ENCODINGANALOG="260$c">1884</UNITDATE>
>        </UNITTITLE>
>     </DID>
>     <ODD>
>       <P>
>         <SUBJECT>Piano, organ</SUBJECT>
>       </P>
>     </ODD>
>   </C03>
> </C02>
> 
> </C01>
> 
> Here is my xsl:
>    
> <TBODY>
> <xsl:for-each select="//C02">
>   <TR>
>     <TD>
>       <FONT size="+3">
>         <xsl:value-of select=".//PERSNAME[@ENCODINGANALOG='100$a']"/>
>       </FONT>
>       <xsl:text>&#x20;&#x20;&#x20;&#x20;&#x20;:&#x20;</xsl:text>
>         <xsl:value-of select="@ENCODINGANALOG"/>

The current node is CO2 and it doesn't have ENCODINGANALOG attribute, so 
result of this instruction is empty string.

-- 
Oleg Tkachenko
Multiconn International, Israel


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]