Last change
on this file since 31575 was 11594, checked in by kjdon, 18 years ago |
modified for the new XML format that works with the translator
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
724 bytes
|
Line | |
---|
1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
---|
3 |
|
---|
4 | <xsl:output method="xml" encoding="UTF-8"/>
|
---|
5 |
|
---|
6 | <xsl:template match="Document">
|
---|
7 | <Document>
|
---|
8 | <xsl:for-each select="Section">
|
---|
9 | <xsl:call-template name="processSection"/>
|
---|
10 | </xsl:for-each>
|
---|
11 | </Document>
|
---|
12 | </xsl:template>
|
---|
13 |
|
---|
14 | <xsl:template name="processSection">
|
---|
15 | <Section name="{@name}">
|
---|
16 | <xsl:for-each select="Title">
|
---|
17 | <Title>
|
---|
18 | <xsl:apply-templates select="Text"/>
|
---|
19 | </Title>
|
---|
20 | </xsl:for-each>
|
---|
21 |
|
---|
22 | <xsl:for-each select="Section">
|
---|
23 | <xsl:call-template name="processSection"/>
|
---|
24 | </xsl:for-each>
|
---|
25 | </Section>
|
---|
26 | </xsl:template>
|
---|
27 | </xsl:stylesheet> |
---|
Note:
See
TracBrowser
for help on using the repository browser.