View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-documentation/hst_docs/trunk/scripts/txt2doc.xsl
Revision: 21417
Committed: Tue Jan 26 17:00:05 2010 UTC (10 years, 5 months ago) by rbijlsma
Content type: application/xml
File size: 1827 byte(s)
Log Message:
HSTTWODOCS-242

File Contents

# Content
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 NAME
4 :: Transform a wiki page (after tidy to xhtml), to a readable form of the Hippo XML format.
5
6 DATA
7 Author: R.Bijlsma
8 -->
9
10 <!--
11 TODO In the wiki wordt tt gebruikt voor code, waarom niet code?
12 Misschien een foutje van iemand? Of is het standaard?
13 -->
14
15 <!-- choose version 1.0, 1.1? or 2.0 -->
16 <xsl:transform version='1.0'
17 xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
18 xmlns:xs="http://www.w3.org/2001/XMLSchema"
19 xmlns:s='http://www.scholarita.org/structure'
20 xmlns:sv="http://www.jcp.org/jcr/sv/1.0"
21 xmlns:docs="http://www.hippoecm.org/nt/docs/1.2"
22 xmlns:jcr="http://www.jcp.org/jcr/1.0"
23 xmlns:hippostd="http://www.onehippo.org/jcr/hippostd/nt/2.0"
24 xmlns:hippo="http://www.onehippo.org/jcr/hippo/nt/2.0"
25 xmlns:h='http://www.w3.org/1999/xhtml'
26 >
27
28 <xsl:include href="basic2doc.xsl"/>
29
30 <xsl:output
31 method="xml"
32 encoding="UTF-8"
33 indent="yes"
34 />
35
36 <xsl:key name='sectioncontent' match='h:body/node()[not(self::docs:goal or self::h:h2)]' use="generate-id(preceding-sibling::h:h2[1])"/>
37
38 <!-- _______________________________________________________-->
39 <xsl:template match="/">
40 <s:list xmlns:s="http://www.scholarita.org/structure" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:docs="http://www.hippoecm.org/nt/docs/1.2" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:hippostd="http://www.onehippo.org/jcr/hippostd/nt/2.0" xmlns:hippo="http://www.onehippo.org/jcr/hippo/nt/2.0" xmlns:h="http://www.w3.org/1999/xhtml" elem="document">
41 <xsl:for-each select='/h:html/h:body'>
42 <xsl:call-template name='fulldoc'>
43 <xsl:with-param name='title' select='h:h2[not(//h:h1)][1]|h:1[count(//h:h1)=1]'/>
44 </xsl:call-template>
45 </xsl:for-each>
46 </s:list>
47 </xsl:template>
48
49 </xsl:transform>
50

Properties

Name Value
svn:eol-style native
svn:keywords Id