Altova Mailing List Archives


Re: [xsl] Filtering with multiple templates

From: Mukul Gandhi <mukulgw3@--------->
To:
Date: 11/6/2003 5:35:00 PM
Hi Dongling,
  Would'nt the following XSL not meet the requirement
? 
 
<xsl:template match="Xath-expression"> 
   <Member name="x">
       <Member name="z" />
       <Member name="w" />
   </Member>
</xsl:template>

Regards,
Mukul


--- Dongling Ding <dling61@xxxxxxxxx> wrote:
> 
> Hi,
> 
> I have a difficult situation here and try to get
> your
> help.
> 
> There is the following XML:
> 
> <Member name="x">
>   <Member name="y"/>
>   <Member name="z">
>       <Member name="z1"/>
>       <Member name="z2"/>
>   </Member>
>   <Member name="w"/>
> </Member>
> 
> We need to allow multiple templates to select some
> of
> members. for example, 
> 
> the first template will get:
> <Member name="x">
>   <Member name="z"/>
> </Member>
> 
> the second template will get:
> <Member name="x">
>   <Member name="w"/>
> </Member>
> 
> If we run this two templates sequentially, we will
> get:
> <Member name="x">
>   <Member name="z"/>
> </Member>
> <Member name="x">
>   <Member name="w"/>
> </Member>
> 
> But we want to get the following based on the
> original
> structure:
> 
> <Member name="x">
>   <Member name="z"/>
>   <Member name="w"/>
> </Member>
> 
> Please provide any idea that might help. Thanks a
> lot.
> 
> 
> Dongling
> 
> 
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
> 
>  XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
> 


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.