Project

Profile

Help

Revision 34f79044

Added by Debbie Lockett 10 months ago

Saxon/C 1.2 documentation (under latest9.9): upgrade app to use Saxon-JS 2

View differences:

latest9.9/hec/saxonc-doc/xsl/jstree.xsl
13 13
    extension-element-prefixes="ixsl"
14 14
    version="3.0">
15 15
    
16
    <!-- Stylesheet to generate the Saxon-JS documentation viewer app using Saxon-JS in the browser. 
16
    <!-- Stylesheet to generate the Saxon/C documentation viewer app using Saxon-JS in the browser. 
17 17
        The initial template is named 'main'.
18 18
        
19 19
        Note that functions-body.xsl and elements-body.xsl are adapted from the versions for the
20 20
        main Saxon documentation viewer_app: 
21
            - All 'elements' and 'functions' are found in sections of ixsl-extensions.xml, 
22
             for extension instructions and functions respectively
23
             
24
            - Various simplifications are made because all instructions and functions referenced are
21
            - The versions here are as used for the Saxon-JS documentation.
22
            - e.g. Various simplifications are made to assume all instructions and functions referenced are
25 23
            those in the ixsl namespace
24
            - But these are not actually currently used in Saxon/C documentation
26 25
            
27 26
            - use shared templates in el-fnd-body.xsl for corresponding elements in fnd and el namespaces
28 27
    -->
......
31 30
    <xsl:import href="findtext.xsl"/>
32 31
    <xsl:import href="app-functions.xsl"/>
33 32
    <xsl:import href="el-fnd-body.xsl"/><!-- Must be imported before functions-body.xsl and
34
        elements-body.xsl to ensure correct import precendence -->
33
        elements-body.xsl to ensure correct import precedence -->
35 34
    <xsl:import href="functions-body.xsl"/>
36 35
    <xsl:import href="elements-body.xsl"/>
37 36
    <!--<xsl:import href="changes.xsl"/>-->
38 37
   
39
    <xsl:param name="product" select="'Saxon-JS'" as="xs:string"/>
38
    <xsl:param name="product" select="'Saxon/C'" as="xs:string"/>
39
    <xsl:param name="SEFbuildDate" select="'2020-08-24'" as="xs:string" static="yes"/>
40
    <xsl:param name="showStatusMessage" select="false()" as="xs:boolean"/>
40 41

  
41 42
    <xsl:variable name="location" select="resolve-uri('doc', ixsl:location())"/>
42 43
    <xsl:variable name="implement-doc" select="concat($location, '/implement.xml')"/>
......
48 49

  
49 50
    <xsl:template name="main">
50 51
        <xsl:variable name="catDocName" select="concat($location, '/catalog.xml')"/>
52
        
53
        <xsl:if test="$showStatusMessage">
54
            <xsl:message expand-text="yes">{$SEFbuildDate} {$product} documentation app running with Saxon-JS {ixsl:eval('SaxonJS.getProcessorInfo()["productVersion"]')}</xsl:message>
55
        </xsl:if>
51 56
        <ixsl:schedule-action document="{$catDocName}">
52 57
            <xsl:call-template name="list">
53 58
                <xsl:with-param name="docName" select="$catDocName"/>

Also available in: Unified diff