<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dc="http://www.idpf.org/2007/opf" xpath-default-namespace="http://www.utc.fr/ics/hdoc/xhtml" exclude-result-prefixes="xs" version="2.0"> <xsl:template name="spine"> <spine toc="tDMncx"> <xsl:for-each select="body/section"> <itemref> <xsl:attribute name="idref">ch<xsl:number level="multiple" count="section" format="1"/></xsl:attribute> </itemref> </xsl:for-each> </spine> </xsl:template> </xsl:stylesheet>