Cross Reference: xsl_util.xsl
xref
: /
openjdk7
/
hotspot
/
src
/
share
/
vm
/
trace
/
xsl_util.xsl
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
4141
N/A
<?
xml
version=
"1.0"
encoding=
"utf-8"
?>
4141
N/A
<!--
4141
N/A
Copyright (c) 2012, Oracle
and
/
or
its affiliates. All rights reserved.
4141
N/A
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4141
N/A
4141
N/A
This code is free software; you can redistribute it
and
/
or
modify it
4141
N/A
under the terms of the GNU General Public License version 2 only, as
4141
N/A
published by the Free Software Foundation.
4141
N/A
4141
N/A
This code is distributed in the hope that it will be useful, but WITHOUT
4141
N/A
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4141
N/A
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4141
N/A
version 2 for more details (a copy is included in the LICENSE file that
4141
N/A
accompanied this code).
4141
N/A
4141
N/A
You should have received a copy of the GNU General Public License version
4141
N/A
2 along with this work; if not, write to the Free Software Foundation,
4141
N/A
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4141
N/A
4141
N/A
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4141
N/A
or visit
www.oracle.com
if you need additional information or have any
4141
N/A
questions.
4141
N/A
-->
4141
N/A
4141
N/A
<
xsl
:
stylesheet
xmlns
:
xsl=
"
http://www.w3.org/1999/XSL/Transform
"
version=
"1.0"
>
4141
N/A
4141
N/A
<!-- utilities used when generating code -->
4141
N/A
4141
N/A
<
xsl
:
variable
name=
"newline"
>
4141
N/A
<
xsl
:
text
>
</
xsl
:
text
>
4141
N/A
</
xsl
:
variable
>
4141
N/A
4141
N/A
<
xsl
:
variable
name=
"indent1"
>
4141
N/A
<
xsl
:
text
>
 </
xsl
:
text
>
4141
N/A
</
xsl
:
variable
>
4141
N/A
4141
N/A
<
xsl
:
variable
name=
"indent2"
>
4141
N/A
<
xsl
:
text
>
 </
xsl
:
text
>
4141
N/A
</
xsl
:
variable
>
4141
N/A
4141
N/A
<
xsl
:
variable
name=
"indent3"
>
4141
N/A
<
xsl
:
text
>
 </
xsl
:
text
>
4141
N/A
</
xsl
:
variable
>
4141
N/A
4141
N/A
<
xsl
:
variable
name=
"indent4"
>
4141
N/A
<
xsl
:
text
>
 </
xsl
:
text
>
4141
N/A
</
xsl
:
variable
>
4141
N/A
4141
N/A
<
xsl
:
variable
name=
"quote"
>
4141
N/A
<
xsl
:
text
>"</
xsl
:
text
>
4141
N/A
</
xsl
:
variable
>
4141
N/A
4141
N/A
<
xsl
:
template
name=
"file-header"
>
4141
N/A
<
xsl
:
text
>/* AUTOMATICALLY GENERATED FILE - DO NOT EDIT */</
xsl
:
text
>
4141
N/A
</
xsl
:
template
>
4141
N/A
4141
N/A
<
xsl
:
template
name=
"string-replace-all"
>
4141
N/A
<
xsl
:
param
name=
"text"
/>
4141
N/A
<
xsl
:
param
name=
"replace"
/>
4141
N/A
<
xsl
:
param
name=
"by"
/>
4141
N/A
<
xsl
:
choose
>
4141
N/A
<
xsl
:
when
test=
"contains($text, $replace)"
>
4141
N/A
<
xsl
:
value
-
of
select=
"substring-before($text,$replace)"
/>
4141
N/A
<
xsl
:
value
-
of
select=
"$by"
/>
4141
N/A
<
xsl
:
call
-
template
name=
"string-replace-all"
>
4141
N/A
<
xsl
:
with
-
param
name=
"text"
select=
"substring-after($text,$replace)"
/>
4141
N/A
<
xsl
:
with
-
param
name=
"replace"
select=
"$replace"
/>
4141
N/A
<
xsl
:
with
-
param
name=
"by"
select=
"$by"
/>
4141
N/A
</
xsl
:
call
-
template
>
4141
N/A
</
xsl
:
when
>
4141
N/A
<
xsl
:
otherwise
>
4141
N/A
<
xsl
:
value
-
of
select=
"$text"
/>
4141
N/A
</
xsl
:
otherwise
>
4141
N/A
</
xsl
:
choose
>
4141
N/A
</
xsl
:
template
>
4141
N/A
4141
N/A
4141
N/A
</
xsl
:
stylesheet
>