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

AW: Standard problem?

Subject: AW: Standard problem?
From: "Nestel, Frank" <frank.nestel@xxxxxx>
Date: Mon, 9 Oct 2000 16:58:59 +0200
standard aw
Thank you, great, this much more beautiful than my stuff
and works nicely. I knew there must have been s.th. easier.

> -----Ursprüngliche Nachricht-----
> Von: David Carlisle [mailto:davidc@xxxxxxxxx]
> Gesendet am: Montag, 9. Oktober 2000 16:34
> An: xsl-list@xxxxxxxxxxxxxxxx
> Betreff: Re: Standard problem?
> 
> 
> 
> > This is, to every node I'd like to have
> > all its parents and their siblings, I'd also like to
> > have the node and it's siblings and the direct 
> > childs of the node. 
> 
> Isn't that just "I'd like to have all direct children of any ancestor.
> 
> I think you want something like
> 
> 
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>                 version="1.0"
>                 >
> 
> <xsl:strip-space elements="*"/>
> 
> <xsl:output method="xml" indent="yes"/>
> 
> <xsl:param name="thisid" select="'A1'"/>
> 
> <xsl:template match="*">
>  <xsl:if test="../descendant-or-self::*[@id=$thisid]">
>  <xsl:copy>
>   <xsl:copy-of select="@id"/>
>   <xsl:apply-templates/>
>  </xsl:copy>
>  </xsl:if>
> </xsl:template>
> 
> </xsl:stylesheet>
> 
> 
> 
> <?xml version="1.0" encoding="utf-8"?>
> <x>
> <NODE id="A">
> <NODE id="A1"/>
> <NODE id="A2"/>
> <NODE id="A3">
> <NODE id="A3i"/>
> <NODE id="A3ii"/>
> </NODE>
> </NODE>
> <NODE id="B"/>
> <NODE id="C"/>
> </x>
> 
> 
> David
> 
> 
> 
>  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.