Khadafi995

XSLT Document Split

May 3rd, 2016
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.47 KB | None | 0 0
  1. <xsl:template match='tei:div'>
  2.             <xsl:for-each select='tei:div[@type="chapter"]'>
  3.                 <xsl:result-document href="Chapter{position()}.xhtml">
  4.                     <html>
  5.                         <head>
  6.                         <title>Test</title>
  7.                         </head>
  8.                         <body><xsl:apply-templates/></body>
  9.                     </html>
  10.                 </xsl:result-document>
  11.             </xsl:for-each>
  12.         </xsl:template>
Advertisement
Add Comment
Please, Sign In to add comment