xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Outer Loop and Inner Loop


Subject: [xsl] Outer Loop and Inner Loop
From: "Karl J. Stubsjoen" <karl@xxxxxxxxxxxxx>
Date: Thu, 1 May 2003 10:11:13 -0700

Sorry guys... (another looping question)

Q> I have a matched template node, within this template I loop through an
entirely different document source (if you've been following along, you'll
be familiar with xmTmplt).  For each node in $xmTmplt/FLD I need to look up
an attribute in the original template match.  This is where I get lost,
because I'm not sure of my current context, so not sure how to get values
from the "original" context.  Here is what I've got:

<xsl:template match="rs:data/z:row">
    <tr>
    <xsl:for-each select="$xmTmplt/FLD">
         <td>
         <xsl:value-of select="@name
{{AND_MATCH_TO_OUTER_TEMPLATE_CONTEXT}}"/>
         </td>
    </xsl:for-each>
    </tr>
</xsl:template>

I know this seems similar to recent posts, but it is different.  Also, why
am I doing this?  Because I just learned that ADO does not return -NULL-
values, so I end up with missing element in my ADOXML results set, therefore
I am looping through the original XML Template (which I use to dynamically
build an SQL Command...and so on...to guarantee display of all intendid
field elements).

Thanks again!
Karl


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



Current Thread
Keywords
xml
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor