File: deprecated.xsl

package info (click to toggle)
xml-resume-library 1.5.1-9
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,516 kB
  • ctags: 424
  • sloc: xml: 867; makefile: 126; sh: 47
file content (137 lines) | stat: -rw-r--r-- 5,441 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="UTF-8"?>

<!--
deprecated.xsl
Print warning messages about deprecated elements.

Copyright (c) 2000-2002 by Bruce Christensen

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

1. Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the
   distribution.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

$Id: deprecated.xsl,v 1.1 2002/05/26 03:45:51 bruckie Exp $
-->

<!--
In general, each block is responsible for outputting a newline after itself.
-->

<xsl:stylesheet version="1.0"
         xmlns:r="http://xmlresume.sourceforge.net/resume/0.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <!-- Deprecated in 1.3.3 -->
  <xsl:template match="r:break">
    <xsl:message>
      WARNING: break deprecated
        The break element is deprecated as of version 1.3.3 of the XML Resume
        Library. It will be removed in a future version. It is recommended that
        you remove all break elements.
      You can use "make 13x-140" to fix this problem.
    </xsl:message>
    <xsl:apply-templates/>
  </xsl:template>

  <xsl:template match="r:company">
    <xsl:message>
      WARNING: company deprecated
        The company element is deprecated as of version 1.3.3 of the XML Resume
        Library. It will be removed in a future version. It is recommended that
        you remove all company elements.
      You can use "make 13x-140" to fix this problem.
    </xsl:message>
    <xsl:apply-templates/>
  </xsl:template>

  <xsl:template match="r:street2">
    <xsl:message>
      WARNING: street2 deprecated
        The street2 element is deprecated as of version 1.3.3 of the XML Resume
        Library. It will be removed in a future version. It is recommended that
        you convert all street2 elements to street elements.
      You can use "make 13x-140" to fix this problem.
    </xsl:message>
    <xsl:apply-templates/>
  </xsl:template>

  <!-- Deprecated in 1.4.0 -->
  <xsl:template match="r:skillareas">
    <xsl:message>
      WARNING: skillareas deprecated
        The skillareas element is deprecated as of version 1.4.0 of the XML
        Resume Library. It will be removed in a future version. It is
        recommended that you remove all skillareas elements. skillarea elements
        may now be direct children of resume.
      You can use "make 13x-140" to fix this problem.
    </xsl:message>
    <xsl:apply-templates/>
  </xsl:template>

  <xsl:template name="SkillsDeprecatedMessage">
    <xsl:message>
      WARNING: skills deprecated
        The skills element is deprecated as of version 1.4.0 of the XML Resume
        Library. It will be removed in a future version. It is recommended that
        you remove all skills elements. skill elements may now be direct
        children of skillset.
      You can use "make 13x-140" to fix this problem.
    </xsl:message>
  </xsl:template>
  <xsl:template match="r:skills">
    <xsl:call-template name="SkillsDeprecatedMessage"/>
    <xsl:apply-templates select="r:skill"/>
  </xsl:template>
  <xsl:template match="r:skills" mode="comma">
    <xsl:call-template name="SkillsDeprecatedMessage"/>
    <xsl:apply-templates select="r:skill" mode="comma"/>
  </xsl:template>
  <xsl:template match="r:skills" mode="bullet">
    <xsl:call-template name="SkillsDeprecatedMessage"/>
    <xsl:apply-templates select="r:skill" mode="bullet"/>
  </xsl:template>

  <xsl:template match="r:pubDate">
    <xsl:message>
      WARNING: pubDate deprecated
        The pubDate element is deprecated as of version 1.4.0 of the XML Resume
        Library. It will be removed in a future version. It is recommended that
        you replace pubDate elements with date elements.
      You can use "make 13x-140" to fix this problem.
    </xsl:message>
    <xsl:call-template name="FormatPubDate"/>
  </xsl:template>

  <xsl:template match="r:docpath | r:head | r:node | r:tail | r:label | r:uri">
    <xsl:message>
      WARNING: docpath, head, node, tail, label, and uri deprecated
        The docpath, head, node, tail, label, and uri elements are deprecated as
        of version 1.4.0 of the XML Resume Library. They will be removed in a
        future version. It is recommended that you remove all of these elements.
      You can use "make 13x-140" to fix this problem.
    </xsl:message>
    <xsl:apply-templates/>
  </xsl:template>

</xsl:stylesheet>