Altova Mailing List Archives

Re: [xsl] How to Get Nested Nodes

From: Wolfgang Laun <wolfgang.laun@-----.--->
To: xsl-list@-----.------------.---
Date: 12/22/2011 9:23:00 AM
See below

On 22 December 2011 09:29, Jeffry Proctor <jpgmt@s...> wrote:
> List of Contacts from: feed/entry/content/Contacts
> Ultimately I would like to use a few XSLT's to extract different datasets, my C#
> component, will just have a few functions, be somewhat xml, xslt agnostic,
> getting the function's corresponding XSLT from an xml (think ini file) to
> transfrom and return the datasets from the resulting xml; I'm choosing this over
> a static looping/switch/case node= xpath walking, if anything changes I'd have
> to re-code, I'd rather just update the offending xslt(s) and push that out to
> the client, no install or dll issues, but I digress...


> I'm trying to get a list of contacts from the following xml source

    <xsl:template match="/">
        <ContactList xmlns="" >
                <xsl:apply-templates select="/*"/>

    <xsl:template match="*">
         <xsl:apply-templates select="*"/>

    <xsl:template match="jp:Contact">
                    <xsl:value-of select="@id"/>
                    <xsl:value-of select="jp:name"/>
                    <xsl:value-of select="jp:emailAddress"/>
                    <xsl:value-of select="jp:status"/>


XSL-List info and archive:
To unsubscribe, go to:
or e-mail: <mailto:xsl-list-unsubscribe@l...>


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 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.