Thank you David,
you pushed me a good step forward.
here are the exact stylesheets:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:met="http://jcrud.org/2006/metadata"
>
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:for-each select="join1/aaa/a/name">
<xsl:value-of select="."/>
<xsl:text>
</xsl:text>
<xsl:value-of select="../value1"/>
<xsl:text>
</xsl:text>
<xsl:value-of select="/join1/bbb/a[name=current()]/value2"/>
<xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
and
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:met="http://jcrud.org/2006/metadata"
>
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:for-each select="join2/aaa/ident">
<xsl:value-of select="."/>
<xsl:text> </xsl:text>
<xsl:value-of select="/join2/bbb/ccc[ident=current()]/subject"/>
<xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
David Carlisle wrote:
first one is just something like
<xsl:for-each select="aaa/name">
: <xsl:value-of select="."/>
: <xsl:value-of select="../value1"/>
: <xsl:value-of select="/join1/bbb/a[name=current()]/value2
</xsl:for-each>
second one is something like
<xsl:for-each select="aaa/ident">
: <xsl:value-of select="."/>
<xsl:text> </xsl:text>
<xsl:value-of select="/join2/bbb/a[ident=current()]/subject
</xsl:for-each>
David
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--