xsl-list
[Top] [All Lists]

Re: [xsl] Dividing a long document into seperate documents

2006-08-15 15:29:24
The reason it's creating just one record is because it's counting up the
preceding-sibling axis. As it happens, the metadata elements have no RDF
elements as preceding siblings, so it never gets anywhere. If you're trying
to create an RDF file for each metadata/oai_dc:dc element, then count those
elements, thus:

<xsl:for-each select="metadata/oai_dc:dc">
  <xsl:result-document href="{concat('rdf',
count(preceding-sibling::oai_dc:dc) +1, '.rdf')}">
    <!-- Snipped the other processing -->
  </xsl:result-document>
</xsl:for-each>

HTH

Jay Bryant
Bryant Communication Services



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