Last change
on this file since 11574 was 6941, checked in by mdewsnip, 20 years ago |
Changed gen-index-xml.xsl to spit out XML instead of HTML. This makes the output pretty much unreadable (it's not intended for human reading anyway), but prevents XSL from converting Unicode characters into unparseable entities (like ó).
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
710 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/>
|
---|
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.