Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2

    
3
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4

    
5

    
6

    
7
<!--
8

    
9
Description: Outputs model URL and a link to save the current version of it
10

    
11
Author:      Mike Adair
12

    
13
Licence:     LGPL as per: http://www.gnu.org/copyleft/lesser.html
14

    
15

    
16

    
17
AoiForm.xsl,v 1.2 2004/06/25 17:59:38 madair1 Exp
18

    
19
-->
20

    
21

    
22

    
23
  <xsl:output method="xml" encoding="utf-8"/>
24

    
25

    
26

    
27
  <!-- The common params set for all widgets -->
28

    
29
  <xsl:param name="lang">en</xsl:param>
30

    
31
  <xsl:param name="modelId"/>
32

    
33
  <xsl:param name="widgetId"/>
34

    
35

    
36

    
37
  <!-- The name of the form for coordinate output -->
38

    
39
  <xsl:param name="modelUrl"/>
40

    
41
  <xsl:param name="serializeUrl">/mapbuilder/writeXml</xsl:param>
42

    
43
  <xsl:param name="echoUrl">/mapbuilder/echoXml</xsl:param>
44

    
45

    
46

    
47
  <!-- Main html -->
48

    
49
  <xsl:template match="/">
50

    
51
    <div>
52

    
53
      <h3>Model URLs: <xsl:value-of select="$modelId"/></h3>
54

    
55
      <a href="{$modelUrl}" target="modelWin">original model URL</a><br/>
56

    
57
      <a href="javascript:config.objects.{$modelId}.saveModel(config.objects.{$modelId})">save current model to disk</a><br/>
58

    
59
      <a target="modelXML" id="{$modelId}.{$widgetId}.modelUrl">pick it up here</a><br/>
60

    
61
    </div>
62

    
63
  </xsl:template>
64

    
65
  
66

    
67
</xsl:stylesheet>
68

    
(101-101/145)