xsl-list
[Top] [All Lists]

Re: [xsl] Selecting all specific children

2012-01-10 17:40:55
Thanks,
I was hoping that I was doing something obvious. I'll need to work on a run-able example.
Mark

-----Original Message----- From: Andrew Welch
Sent: Tuesday, January 10, 2012 4:12 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Selecting all specific children

Hi,

You haven't shown enough code to see where the problem is, post a
small complete runnable sample stylesheet.

cheers
andrew

On 10 January 2012 23:04, Mark <mark(_at_)knihtisk(_dot_)org> wrote:
This code only selects the first 'Inscriptions' child in a <Stamp>. I cannot see how to use a for-each in this case, if that is the correct thing to do,
to apply the template match="Inscriptions" mode="English" to all the
Inscriptions?

<xsl:apply-templates select="//Inscriptions" mode="english"/>

<Set>
         <Motif concept="Art on Stamps"/>
         <Stamp>
               <CatNumbers scott-number="3478" pofis-number="661"/>
               <Value kc-value="24"/>
               <Inscriptions czech="Paris a Helena, kolem 1672" eng="Helen
and Paris, circa 1672"/>
               <Inscriptions czech="Karel Škréta (1610-1674)" eng="*"/>
               <Inscriptions czech="Národní Galerie v Praze" eng="National
Gallery, Prague"/>
               <Formats minisheet="661"/>
               <Location denomination="2"/>
         </Stamp>
</Set>
Thanks,
Mark


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




--
Andrew Welch
http://andrewjwelch.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>
--~--




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