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

Antw: Re: occurrences and axis

Subject: Antw: Re: occurrences and axis
From: agnes.kielen@xxxxxxx
Date: Tue, 18 Nov 2003 13:18:10 +0100
Antw: Re:  occurrences and axis
Hi Elena,

Try this. It's based on your example. 

XML:
<teiCorpus.2>	
  <div4 type="forma">		
    <termEntry id="without">			
      <tig>				
   	<ptr gradRef="it_co" type="tipo lessicale" target="CAZZO"/>	<ptr type="area tematica" target="alt" />			<ptr gradRef="it_co" type="voce" target="stupido"/>
      </tig>		
    </termEntry>
   <!-- copied your example -->		
    <termEntry id="with gerg-in">				
       <tig>				
	<!-- Changed it here-->				
	<ptr gradRef='gerg_inn' type="tipo lessicale" target="CAZZO"/>				
	<ptr type="area tematica" target="alt" />			<ptr gradRef="it_co" type="voce" target="stupido"/>
      </tig>		
    </termEntry>	
   </div4>
</teiCorpus.2>

XSLT:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:template match="/">
       <xsl:apply-templates select="//termEntry"/>
   </xsl:template>
   
   <xsl:template match="termEntry">
       <xsl:if test=".//ptr[@gradRef='gerg_inn']">
       <xsl:copy-of select="."/>
       </xsl:if>
   </xsl:template>
</xsl:stylesheet>

Cheers,
Agnes



> 
> Van: Elena Pierazzo <pierazzo@xxxxxxxxxxxxx>
> Aan: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Datum: di 18 nov 03, 12:29
> Onderwerp: Re:  occurrences and axis
> 
> >  <xsl:if test="child::ptr[attribute::gradRef='gerg_inn']">
> >
> >or e.g.
> >
> >  <xsl:if test="ptr/@gradRef = 'gerg_inn'">
> >
> >  
> >
> but it did not work :-(
> Elena
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 


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


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.