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 TAG name ?


 How about using <xsl:template match="AUTHOR/CLICCABLE">
On Thu, 23 May 2002 16:49:17  
 longjohn wrote:
>Hi to all!
>I' ve got a DOM like the follow one:
><root>
>         <BOOK>
>              <TITLE>
>                         .....
>              </TITLE>
>              <CLICCABLE>
>                         ....
>              </CLICCABLE>
>              <AUTHOR>
>                     <NAME>....</NAME>
>                     <CLICCABLE>...</CLICCABLE>
>              </AUTHOR>
>       </BOOK>
>       .....
>       .....
></root>
>
>The problem is that when I apply the 'AUTHOR template' in my XSL , and I 
>want to consider CLICCABLE , the process takes the first one , instead I 
>need the second one (inside AUTHOR) !
>
>
>.....
><xsl:apply-templates select="BOOK"/>
>.....
>
><xsl:template match="BOOK">
>      <xsl:apply-templates select="AUTHOR"/>
>...........
></xsl:template>
>
><xsl:template match="AUTHOR">
>          <xsl:if test="CLICCABLE=1">  <!-- value token from the first 
>one!!!! -->
>.........
></xsl:template>
>
>
>THANKS!
>
>
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>


________________________________________________________
Outgrown your current e-mail service?
Get a 25MB Inbox, POP3 Access, No Ads and No Taglines with LYCOS MAIL PLUS.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus

 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]