| 2232 | == Appendix A: !AnnotationText XSD Style Definitions == |
| 2233 | |
| 2234 | |
| 2235 | {{{ |
| 2236 | <?xml version="1.0" encoding="UTF-8"?> |
| 2237 | <xs:schema |
| 2238 | targetNamespace="http://fdo.osgeo.org/annotation" |
| 2239 | xmlns="http://fdo.osgeo.org/annotation" |
| 2240 | xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 2241 | elementFormDefault="qualified" |
| 2242 | attributeFormDefault="unqualified"> |
| 2243 | <xs:simpleType name="fontWeight"> |
| 2244 | <xs:restriction base="xs:string"> |
| 2245 | <xs:enumeration value="Normal"/> |
| 2246 | <xs:enumeration value="Bold"/> |
| 2247 | <xs:enumeration value="100"/> |
| 2248 | <xs:enumeration value="200"/> |
| 2249 | <xs:enumeration value="300"/> |
| 2250 | <xs:enumeration value="400"/> |
| 2251 | <xs:enumeration value="500"/> |
| 2252 | <xs:enumeration value="600"/> |
| 2253 | <xs:enumeration value="700"/> |
| 2254 | <xs:enumeration value="800"/> |
| 2255 | <xs:enumeration value="900"/> |
| 2256 | </xs:restriction> |
| 2257 | </xs:simpleType> |
| 2258 | <xs:simpleType name="fontStyle"> |
| 2259 | <xs:restriction base="xs:string"> |
| 2260 | <xs:enumeration value="Normal"/> |
| 2261 | <xs:enumeration value="Italics"/> |
| 2262 | <xs:enumeration value="Oblique"/> |
| 2263 | </xs:restriction> |
| 2264 | </xs:simpleType> |
| 2265 | <xs:simpleType name="textDecoration"> |
| 2266 | <xs:restriction base="xs:string"> |
| 2267 | <xs:enumeration value="None"/> |
| 2268 | <xs:enumeration value="Underline"/> |
| 2269 | <xs:enumeration value="LineThrough"/> |
| 2270 | <xs:enumeration value="Overline"/> |
| 2271 | </xs:restriction> |
| 2272 | </xs:simpleType> |
| 2273 | <xs:simpleType name="spacing"> |
| 2274 | <xs:union> |
| 2275 | <xs:simpleType> |
| 2276 | <xs:restriction base="xs:string"> |
| 2277 | <xs:enumeration value="Normal"/> |
| 2278 | </xs:restriction> |
| 2279 | </xs:simpleType> |
| 2280 | <xs:simpleType> |
| 2281 | <xs:restriction base="xs:float"/> |
| 2282 | </xs:simpleType> |
| 2283 | </xs:union> |
| 2284 | </xs:simpleType> |
| 2285 | <xs:simpleType name="colorType"> |
| 2286 | <xs:union> |
| 2287 | <xs:simpleType> |
| 2288 | <xs:restriction base="xs:string"> |
| 2289 | <xs:pattern value="(rgb\(N,N,N\))"/> |
| 2290 | </xs:restriction> |
| 2291 | </xs:simpleType> |
| 2292 | <xs:simpleType> |
| 2293 | <xs:restriction base="xs:string"> |
| 2294 | <xs:enumeration value="none"/> |
| 2295 | <xs:enumeration value="aliceblue"/> |
| 2296 | <xs:enumeration value="antiquewhite"/> |
| 2297 | <xs:enumeration value="aqua"/> |
| 2298 | <xs:enumeration value="aquamarine"/> |
| 2299 | <xs:enumeration value="azure"/> |
| 2300 | <xs:enumeration value="beige"/> |
| 2301 | <xs:enumeration value="bisque"/> |
| 2302 | <xs:enumeration value="black"/> |
| 2303 | <xs:enumeration value="blanchedalmond"/> |
| 2304 | <xs:enumeration value="blue"/> |
| 2305 | <xs:enumeration value="blueviolet"/> |
| 2306 | <xs:enumeration value="brown"/> |
| 2307 | <xs:enumeration value="burlywood"/> |
| 2308 | <xs:enumeration value="cadetblue"/> |
| 2309 | <xs:enumeration value="chartreuse"/> |
| 2310 | <xs:enumeration value="chocolate"/> |
| 2311 | <xs:enumeration value="coral"/> |
| 2312 | <xs:enumeration value="cornflowerblue"/> |
| 2313 | <xs:enumeration value="cornsilk"/> |
| 2314 | <xs:enumeration value="crimson"/> |
| 2315 | <xs:enumeration value="cyan"/> |
| 2316 | <xs:enumeration value="darkblue"/> |
| 2317 | <xs:enumeration value="darkcyan"/> |
| 2318 | <xs:enumeration value="darkgoldenrod"/> |
| 2319 | <xs:enumeration value="darkgray"/> |
| 2320 | <xs:enumeration value="darkgreen"/> |
| 2321 | <xs:enumeration value="darkgrey"/> |
| 2322 | <xs:enumeration value="darkkhaki"/> |
| 2323 | <xs:enumeration value="darkmagenta"/> |
| 2324 | <xs:enumeration value="darkolivegreen"/> |
| 2325 | <xs:enumeration value="darkorange"/> |
| 2326 | <xs:enumeration value="darkorchid"/> |
| 2327 | <xs:enumeration value="darkred"/> |
| 2328 | <xs:enumeration value="darksalmon"/> |
| 2329 | <xs:enumeration value="darkseagreen"/> |
| 2330 | <xs:enumeration value="darkslateblue"/> |
| 2331 | <xs:enumeration value="darkslategray"/> |
| 2332 | <xs:enumeration value="darkslategrey"/> |
| 2333 | <xs:enumeration value="darkturquoise"/> |
| 2334 | <xs:enumeration value="darkviolet"/> |
| 2335 | <xs:enumeration value="deeppink"/> |
| 2336 | <xs:enumeration value="deepskyblue"/> |
| 2337 | <xs:enumeration value="dimgray"/> |
| 2338 | <xs:enumeration value="dimgrey"/> |
| 2339 | <xs:enumeration value="dodgerblue"/> |
| 2340 | <xs:enumeration value="firebrick"/> |
| 2341 | <xs:enumeration value="floralwhite"/> |
| 2342 | <xs:enumeration value="forestgreen"/> |
| 2343 | <xs:enumeration value="fuchsia"/> |
| 2344 | <xs:enumeration value="gainsboro"/> |
| 2345 | <xs:enumeration value="ghostwhite"/> |
| 2346 | <xs:enumeration value="gold"/> |
| 2347 | <xs:enumeration value="goldenrod"/> |
| 2348 | <xs:enumeration value="gray"/> |
| 2349 | <xs:enumeration value="grey"/> |
| 2350 | <xs:enumeration value="green"/> |
| 2351 | <xs:enumeration value="greenyellow"/> |
| 2352 | <xs:enumeration value="honeydew"/> |
| 2353 | <xs:enumeration value="hotpink"/> |
| 2354 | <xs:enumeration value="indianred"/> |
| 2355 | <xs:enumeration value="indigo"/> |
| 2356 | <xs:enumeration value="ivory"/> |
| 2357 | <xs:enumeration value="khaki"/> |
| 2358 | <xs:enumeration value="lavender"/> |
| 2359 | <xs:enumeration value="lavenderblush"/> |
| 2360 | <xs:enumeration value="lawngreen"/> |
| 2361 | <xs:enumeration value="lemonchiffon"/> |
| 2362 | <xs:enumeration value="lightblue"/> |
| 2363 | <xs:enumeration value="lightcoral"/> |
| 2364 | <xs:enumeration value="lightcyan"/> |
| 2365 | <xs:enumeration value="lightgoldenrodyellow"/> |
| 2366 | <xs:enumeration value="lightgray"/> |
| 2367 | <xs:enumeration value="lightgreen"/> |
| 2368 | <xs:enumeration value="lightgrey"/> |
| 2369 | <xs:enumeration value="lightpink"/> |
| 2370 | <xs:enumeration value="lightsalmon"/> |
| 2371 | <xs:enumeration value="lightseagreen"/> |
| 2372 | <xs:enumeration value="lightskyblue"/> |
| 2373 | <xs:enumeration value="lightslategray"/> |
| 2374 | <xs:enumeration value="lightslategrey"/> |
| 2375 | <xs:enumeration value="lightsteelblue"/> |
| 2376 | <xs:enumeration value="lightyellow"/> |
| 2377 | <xs:enumeration value="lime"/> |
| 2378 | <xs:enumeration value="limegreen"/> |
| 2379 | <xs:enumeration value="linen"/> |
| 2380 | <xs:enumeration value="magenta"/> |
| 2381 | <xs:enumeration value="maroon"/> |
| 2382 | <xs:enumeration value="mediumaquamarine"/> |
| 2383 | <xs:enumeration value="mediumblue"/> |
| 2384 | <xs:enumeration value="mediumorchid"/> |
| 2385 | <xs:enumeration value="mediumpurple"/> |
| 2386 | <xs:enumeration value="mediumseagreen"/> |
| 2387 | <xs:enumeration value="mediumslateblue"/> |
| 2388 | <xs:enumeration value="mediumspringgreen"/> |
| 2389 | <xs:enumeration value="mediumturquoise"/> |
| 2390 | <xs:enumeration value="mediumvioletred"/> |
| 2391 | <xs:enumeration value="midnightblue"/> |
| 2392 | <xs:enumeration value="mintcream"/> |
| 2393 | <xs:enumeration value="mistyrose"/> |
| 2394 | <xs:enumeration value="moccasin"/> |
| 2395 | <xs:enumeration value="navajowhite"/> |
| 2396 | <xs:enumeration value="navy"/> |
| 2397 | <xs:enumeration value="oldlace"/> |
| 2398 | <xs:enumeration value="olive"/> |
| 2399 | <xs:enumeration value="olivedrab"/> |
| 2400 | <xs:enumeration value="orange"/> |
| 2401 | <xs:enumeration value="orangered"/> |
| 2402 | <xs:enumeration value="orchid"/> |
| 2403 | <xs:enumeration value="palegoldenrod"/> |
| 2404 | <xs:enumeration value="palegreen"/> |
| 2405 | <xs:enumeration value="paleturquoise"/> |
| 2406 | <xs:enumeration value="palevioletred"/> |
| 2407 | <xs:enumeration value="papayawhip"/> |
| 2408 | <xs:enumeration value="peachpuff"/> |
| 2409 | <xs:enumeration value="peru"/> |
| 2410 | <xs:enumeration value="pink"/> |
| 2411 | <xs:enumeration value="plum"/> |
| 2412 | <xs:enumeration value="powderblue"/> |
| 2413 | <xs:enumeration value="purple"/> |
| 2414 | <xs:enumeration value="red"/> |
| 2415 | <xs:enumeration value="rosybrown"/> |
| 2416 | <xs:enumeration value="royalblue"/> |
| 2417 | <xs:enumeration value="saddlebrown"/> |
| 2418 | <xs:enumeration value="salmon"/> |
| 2419 | <xs:enumeration value="sandybrown"/> |
| 2420 | <xs:enumeration value="seagreen"/> |
| 2421 | <xs:enumeration value="seashell"/> |
| 2422 | <xs:enumeration value="sienna"/> |
| 2423 | <xs:enumeration value="silver"/> |
| 2424 | <xs:enumeration value="skyblue"/> |
| 2425 | <xs:enumeration value="slateblue"/> |
| 2426 | <xs:enumeration value="slategray"/> |
| 2427 | <xs:enumeration value="slategrey"/> |
| 2428 | <xs:enumeration value="snow"/> |
| 2429 | <xs:enumeration value="springgreen"/> |
| 2430 | <xs:enumeration value="steelblue"/> |
| 2431 | <xs:enumeration value="tan"/> |
| 2432 | <xs:enumeration value="teal"/> |
| 2433 | <xs:enumeration value="thistle"/> |
| 2434 | <xs:enumeration value="tomato"/> |
| 2435 | <xs:enumeration value="turquoise"/> |
| 2436 | <xs:enumeration value="violet"/> |
| 2437 | <xs:enumeration value="wheat"/> |
| 2438 | <xs:enumeration value="white"/> |
| 2439 | <xs:enumeration value="whitesmoke"/> |
| 2440 | <xs:enumeration value="yellow"/> |
| 2441 | <xs:enumeration value="yellowgreen"/> |
| 2442 | </xs:restriction> |
| 2443 | </xs:simpleType> |
| 2444 | </xs:union> |
| 2445 | </xs:simpleType> |
| 2446 | <xs:simpleType name="opacity"> |
| 2447 | <xs:restriction base="xs:float"> |
| 2448 | <xs:minInclusive value="0.0"/> |
| 2449 | <xs:maxInclusive value="1.0"/> |
| 2450 | </xs:restriction> |
| 2451 | </xs:simpleType> |
| 2452 | <xs:simpleType name="horizontalAlignment"> |
| 2453 | <xs:restriction base="xs:string"> |
| 2454 | <xs:enumeration value="start"/> |
| 2455 | <xs:enumeration value="center"/> |
| 2456 | <xs:enumeration value="end"/> |
| 2457 | </xs:restriction> |
| 2458 | </xs:simpleType> |
| 2459 | <xs:simpleType name="verticalAlignment"> |
| 2460 | <xs:restriction base="xs:string"> |
| 2461 | <xs:enumeration value="top"/> |
| 2462 | <xs:enumeration value="center"/> |
| 2463 | <xs:enumeration value="baseline"/> |
| 2464 | <xs:enumeration value="bottom"/> |
| 2465 | </xs:restriction> |
| 2466 | </xs:simpleType> |
| 2467 | <xs:simpleType name="multilineJustification"> |
| 2468 | <xs:restriction base="xs:string"> |
| 2469 | <xs:enumeration value="left"/> |
| 2470 | <xs:enumeration value="center"/> |
| 2471 | <xs:enumeration value="right"/> |
| 2472 | </xs:restriction> |
| 2473 | </xs:simpleType> |
| 2474 | <xs:element name="textStyle"> |
| 2475 | <xs:annotation> |
| 2476 | <xs:documentation>Text font style attribute</xs:documentation> |
| 2477 | </xs:annotation> |
| 2478 | <xs:complexType> |
| 2479 | <xs:attribute name="font-family" type="xs:string" use="required"/> |
| 2480 | <xs:attribute name="font-size" type="xs:float" use="required"/> |
| 2481 | <xs:attribute name="font-weight" type="fontWeight" use="optional" default="Normal"/> |
| 2482 | <xs:attribute name="font-style" type="fontStyle" use="optional" default="Normal"/> |
| 2483 | <xs:attribute name="text-decoration" type="textDecoration" use="optional" default="None"/> |
| 2484 | <xs:attribute name="letter-spacing" type="spacing" use="optional" default="Normal"/> |
| 2485 | <xs:attribute name="word-spacing" type="spacing" use="optional" default="Normal"/> |
| 2486 | <xs:attribute name="fill" type="colorType" use="optional" default="black"/> |
| 2487 | <xs:attribute name="fill-opacity" type="opacity" use="optional" default="1.0"/> |
| 2488 | <xs:attribute name="stroke" type="colorType" use="optional" default="black"/> |
| 2489 | <xs:attribute name="stroke-width" type="xs:float" use="optional" default="1.0"/> |
| 2490 | <xs:attribute name="stroke-opacity" type="opacity" use="optional" default="1.0"/> |
| 2491 | </xs:complexType> |
| 2492 | </xs:element> |
| 2493 | <xs:element name="textLayout"> |
| 2494 | <xs:annotation> |
| 2495 | <xs:documentation>Text alignment and justification </xs:documentation> |
| 2496 | </xs:annotation> |
| 2497 | <xs:complexType> |
| 2498 | <xs:attribute name="horizontalAlignment" type="horizontalAlignment" |
| 2499 | use="optional" default="start"/> |
| 2500 | <xs:attribute name="verticalAlignment" type="verticalAlignment" |
| 2501 | use="optional" default="top" /> |
| 2502 | <xs:attribute name="multilineJustification" type="multilineJustification" |
| 2503 | use="optional" default="left"/> |
| 2504 | <xs:attribute name="multilineSpacing" type="xs:float" use="optional" default="0.0"/> |
| 2505 | </xs:complexType> |
| 2506 | </xs:element> |
| 2507 | <xs:complexType name="textAttributesType"> |
| 2508 | <xs:annotation> |
| 2509 | <xs:documentation>OGC Annotation Style Definiton</xs:documentation> |
| 2510 | </xs:annotation> |
| 2511 | <xs:sequence> |
| 2512 | <xs:element ref="textStyle" minOccurs="0" maxOccurs="1"/> |
| 2513 | <xs:element ref="textLayout" minOccurs="0" maxOccurs="1"/> |
| 2514 | </xs:sequence> |
| 2515 | </xs:complexType> |
| 2516 | <xs:element name="textAttributes" type="textAttributesType"/> |
| 2517 | </xs:schema> |
| 2518 | }}} |