Next in thread → Next in month →

Re: [docbook-apps] chunking or splitting for non-html files

From
<>
Date
2010-07-22T17:02:59+00:00
ID
Thread
Re: [docbook-apps] chunking or splitting for non-html files
|  -----Original Message-----
|  From:  
|  
|  However I am running into an issue when I use this following 
|  stylesheet to sections and have a nested section 
|  it errors saying it cannot write out to same URI.
|
|  Here is the Style Sheet 
|  
|  <xsl:template match="node()|@*">
|    <xsl:copy>
|      <xsl:apply-templates select="node()|@*"/>
|    </xsl:copy>
|  </xsl:template>
|  <xsl:template match="section">
|    <xsl:variable name="filename">
|      <xsl:number count="section"/>
|    </xsl:variable>
|    <xi:include href="{$filename}.xml" 
|  xmlns:xi="http://www.w3.org/2001/XInclude"/>
|    <xsl:result-document href="Sect-{$filename}.xml">
|      <xsl:next-match/>
|    </xsl:result-document>
|  </xsl:template>


Try changing <xsl:number count="section"> to 

 <xsl:number count="section" level="multiple"/>

Or perhaps you'll prefer

 <xsl:number count="section" level="any"/>

Mauritz



---------------------------------------------------------------------
To unsubscribe, e-mail: 
For additional commands, e-mail: 
Next in thread → Next in month →