Re: [xsl] how to rearrange nodes based on a dependency graph?

Subject: Re: [xsl] how to rearrange nodes based on a dependency graph?
From: Gunther Schadow <gunther@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 20 Dec 2001 17:00:47 -0500
Oops, wouldn't that just not handle any of the fragments
that have dependencies? Seems like all you do is exclude
the ones with a requires attribute? Or am I missing something?

-Gunther

Chris Bayes wrote:

Hick! Or probably you want this

<xsl:template match="frag[not(@requires)]">
	<xsl:copy-of select="//frag[@id = current()/@id and
not(@requires)] />
	<xsl:copy-of select="." />
</xsl:template>
<xsl:template match="frag" />

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


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




--
Gunther Schadow, M.D., Ph.D.                    gschadow@xxxxxxxxxxxxxxx
Medical Information Scientist      Regenstrief Institute for Health Care
Adjunct Assistant Professor        Indiana University School of Medicine
tel:1(317)630-7960                         http://aurora.regenstrief.org



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


Current Thread