OW2 Consortium ops

Rev

Rev 1524 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 ebruchez 1
<!--
2
    Copyright (C) 2004 Orbeon, Inc.
3
 
4
    This program is free software; you can redistribute it and/or modify it under the terms of the
5
    GNU Lesser General Public License as published by the Free Software Foundation; either version
6
    2.1 of the License, or (at your option) any later version.
7
 
8
    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9
    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
    See the GNU Lesser General Public License for more details.
11
 
12
    The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
13
-->
14
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
15
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
16
    xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns:xhtml="http://www.w3.org/1999/xhtml"
17
    xmlns:fo="http://www.w3.org/1999/XSL/Format"
18
    xmlns:oxf="http://www.orbeon.com/oxf/processors">
19
 
20
    <p:processor name="oxf:request">
21
        <p:input name="config">
22
            <config>
23
                <include>/request/request-path</include>
24
            </config>
25
        </p:input>
26
        <p:output name="data" id="path"/>
27
    </p:processor>
28
 
29
    <p:processor name="oxf:xslt">
30
        <p:input name="config">
31
            <config xsl:version="2.0">oxf:/examples-standalone/struts-view/view/<xsl:value-of select="substring-after(/request/request-path, '/examples-struts/')"/></config>
32
        </p:input>
33
        <p:input name="data" href="#path"/>
34
        <p:output name="data" id="url"/>
35
    </p:processor>
36
 
37
    <p:processor name="oxf:url-generator">
38
        <p:input name="config" href="#url"/>
39
        <p:output name="data" id="user-pipeline"/>
40
    </p:processor>
41
 
42
    <p:processor name="oxf:xslt">
43
        <p:input name="data" href="#user-pipeline"/>
44
        <p:input name="url" href="#url"/>
45
        <p:input name="config">
46
            <p:config xsl:version="2.0">
47
                <p:param type="output" name="page"/>
48
 
49
                <xsl:for-each select="/p:config/p:param[@type='input' and @name != 'errors']">
50
                    <p:processor name="oxf:bean-generator">
51
                        <p:input name="mapping">
52
                            <mapping/>
53
                        </p:input>
54
                        <p:input name="config">
55
                            <config>
56
                                <attribute>
57
                                    <xsl:value-of select="@name"/>
58
                                </attribute>
59
                                <source>request</source>
60
                            </config>
61
                        </p:input>
62
                        <p:output name="data" id="bean-{@name}"/>
63
                    </p:processor>
64
                </xsl:for-each>
65
 
66
                <xsl:if test="/p:config/p:param[@type='input' and @name = 'errors']">
67
                    <p:processor name="oxf:struts-errors-generator">
68
                        <p:output name="data" id="errors"/>
69
                    </p:processor>
70
                </xsl:if>
71
 
72
                <p:processor name="oxf:url-generator">
73
                    <p:input name="config">
1524 ebruchez 74
                        <xsl:copy-of select="doc('input:url')"/>
5 ebruchez 75
                    </p:input>
76
                    <p:output name="data" id="user-pipeline"/>
77
                </p:processor>
78
 
79
                <p:processor name="oxf:pipeline">
80
                    <p:input name="config" href="#user-pipeline"/>
81
                    <xsl:for-each select="/p:config/p:param[@type='input' and @name != 'errors']">
82
                        <p:input name="{@name}" href="#bean-{@name}"/>
83
                    </xsl:for-each>
84
                    <xsl:if test="/p:config/p:param[@type='input' and @name = 'errors']">
85
                        <p:input name="errors" href="#errors"/>
86
                    </xsl:if>
87
                    <p:output name="data" ref="page"/>
88
                </p:processor>
89
            </p:config>
90
        </p:input>
91
        <p:output name="data" id="pipeline"/>
92
    </p:processor>
93
 
94
    <p:processor name="oxf:pipeline">
95
        <p:input name="config" href="#pipeline"/>
96
        <p:output name="page" id="page"/>
97
    </p:processor>
98
 
99
    <p:processor name="oxf:pipeline">
100
        <p:input name="config" href="oxf:/config/epilogue.xpl"/>
101
        <p:input name="data" href="#page" />
102
        <p:input name="xforms-instance"><dummy/></p:input>
103
        <p:input name="xforms-model"><dummy/></p:input>
104
    </p:processor>
105
 
106
</p:config>