1N/A<?
xml version="1.0" encoding="iso-2022-jp"?>
1N/A<!-- English Revision: 395228 --> 1N/A Licensed to the Apache Software Foundation (ASF) under one or more 1N/A contributor license agreements. See the NOTICE file distributed with 1N/A this work for additional information regarding copyright ownership. 1N/A The ASF licenses this file to You under the Apache License, Version 2.0 1N/A (the "License"); you may not use this file except in compliance with 1N/A the License. You may obtain a copy of the License at 1N/A Unless required by applicable law or agreed to in writing, software 1N/A distributed under the License is distributed on an "AS IS" BASIS, 1N/A WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1N/A See the License for the specific language governing permissions and 1N/A limitations under the License. 1N/A<
name>mod_unique_id</
name>
1N/A<
description>$B$=$l$>$l$N%j%/%(%9%H$KBP$9$k0l0U$J<
1JL;
R$
NF~$
C$?
4D6-
JQ?
t$
r(
B 1N/A$
BDs6!$
9$
k(
B</description>
1N/A<
status>Extension</
status>
1N/A<
identifier>unique_id_module</
identifier>
1N/A <
p>$B$3$N%b%8%e!<%
k$
OHs>o$K@)8B$5$l$?>r7o2<$
G!
"(B 1N/A $B$=$l$>$l$N%j%/%(%9%H$K!V$9$Y$F!W$N%j%/%(%9%H$KBP$7$F(B 1N/A $B0l0U$K7h$^$k$3$H$,J]>Z$5$l$F$$$kKbK!$N%H!<%/%s$rDs6!$7$^$9!#(B 1N/A $B$3$N0l0U$J<1JL;R$O!"E,@
Z$
K@
_Dj$
5$
l$?%/%
i%
9%?$
G$
OJ#?
t$
N(
B 1N/A $
B%^%
7%
s$
N4V$
G$
5$($
b0l0U$
K$
J$
j$^$
9!#$=$
l$>$l$N%j%/%(%9%H$KBP$7$F4D6-JQ?t(B
1N/A <
code>UNIQUE_ID</
code> $B$K<
1JL;
R$,@
_Dj$
5$
l$^$
9!#(
B 1N/A $
B0l0U$
J<1JL;R$,JXMx$JM}M3$O$$$m$$$m$"$j$^$9$,!"(B
1N/A $B$3$N%I%-%e%a%s%H$NL\E*$+$i$O30$l$k$?$a!"$3$3$G$O@bL@$7$^$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