xsl-list
[Top] [All Lists]

Re: [xsl] can this idea work ?

2012-02-11 09:55:35
Hello Roelof,

Roelof Wobben wrote:
<xsl:template match="dagboek/entry" >
    <h3> 
    <xsl:value-of select="titel" /> 
  </h3>
     <xsl:apply-templates select="dagboek/entry[nieuwe-pagina = 'yes']" 
mode="pagegroup" />
      <xsl:apply-templates select="tekst" />
   </div>
</xsl:template>

In this template, the context node is a <entry> element, therefore 
'apply-templates select="dagboek/entry[...' does not select anything: 
there is no /data/dagboek/entry/dagboek/entry in your input XML.

I'm not sure what you want to achieve with this apply-templates, either, 
since it is located between the code for 'titel' and 'tekst'. Just guessing, 
a better place for this apply-templates would be in the 'data' template.

Also, you may want to use either 'yes' or 'Yes' (like in your XML data).

Markus


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

<Prev in Thread] Current Thread [Next in Thread>