From a15cf65c44d5c224169c32ef5495b68c758134b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 18 May 2014 16:08:14 +0200 Subject: Imported Upstream version 3.3.0.2 --- libxsd-frontend/tests/schema/annotation/makefile | 35 ++++++ .../tests/schema/annotation/test-000.std | 67 ++++++++++++ .../tests/schema/annotation/test-000.xsd | 120 +++++++++++++++++++++ .../tests/schema/annotation/test-001.std | 36 +++++++ .../tests/schema/annotation/test-001.xsd | 53 +++++++++ 5 files changed, 311 insertions(+) create mode 100644 libxsd-frontend/tests/schema/annotation/makefile create mode 100644 libxsd-frontend/tests/schema/annotation/test-000.std create mode 100644 libxsd-frontend/tests/schema/annotation/test-000.xsd create mode 100644 libxsd-frontend/tests/schema/annotation/test-001.std create mode 100644 libxsd-frontend/tests/schema/annotation/test-001.xsd (limited to 'libxsd-frontend/tests/schema/annotation') diff --git a/libxsd-frontend/tests/schema/annotation/makefile b/libxsd-frontend/tests/schema/annotation/makefile new file mode 100644 index 0000000..97f578b --- /dev/null +++ b/libxsd-frontend/tests/schema/annotation/makefile @@ -0,0 +1,35 @@ +# file : tests/schema/annotation/makefile +# author : Boris Kolpackov +# copyright : Copyright (c) 2006-2010 Code Synthesis Tools CC +# license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +include $(dir $(lastword $(MAKEFILE_LIST)))../../../build/bootstrap.make + +tests := 000 001 + +driver := $(out_root)/tests/dump/driver +test := $(out_base)/.test +clean := $(out_base)/.clean + +# Convenience alias for default target. +# +$(out_base)/: $(driver) + +# Test. +# +test_targets := $(addprefix $(out_base)/.test-,$(tests)) + +$(test): $(test_targets) +$(test_targets): driver := $(driver) + +.PHONY: $(out_base)/.test-% +$(out_base)/.test-%: $(driver) $(src_base)/test-%.xsd $(src_base)/test-%.std + $(call message,test $(out_base)/$*,$(driver) $(src_base)/test-$*.xsd | diff -u $(src_base)/test-$*.std -) + +# Clean. +# +$(clean): + +# Dependencies. +# +$(call import,$(src_root)/tests/dump/makefile) diff --git a/libxsd-frontend/tests/schema/annotation/test-000.std b/libxsd-frontend/tests/schema/annotation/test-000.std new file mode 100644 index 0000000..15f3e89 --- /dev/null +++ b/libxsd-frontend/tests/schema/annotation/test-000.std @@ -0,0 +1,67 @@ + +primary +{ + namespace test + { + + list list http://www.w3.org/2001/XMLSchema#string + + union union http://www.w3.org/2001/XMLSchema#int http://www.w3.org/2001/XMLSchema#string + + enumeration enum: http://www.w3.org/2001/XMLSchema#string + { + + enumerator male + + enumerator female + } + + complex type + { + + element efoo + + element ebar + + element ebaz + + any 'any #0' + + optional attribute afoo http://www.w3.org/2001/XMLSchema#string + + optional attribute abar + { + + list http://www.w3.org/2001/XMLSchema#string + } + + optional attribute abaz http://www.w3.org/2001/XMLSchema#string + + any-attribute 'any-attribute #0' + [1, 1] sequence + { + [1, 1] element efoo http://www.w3.org/2001/XMLSchema#string + [1, 1] element ebar + { + complex + { + + element efoo + + optional attribute afoo http://www.w3.org/2001/XMLSchema#string + [1, 1] sequence + { + [1, 1] element efoo http://www.w3.org/2001/XMLSchema#string + } + } + } + [1, 1] element ebaz http://www.w3.org/2001/XMLSchema#string + [1, 1] any 'any #0' + } + } + + element ebaz http://www.w3.org/2001/XMLSchema#string + + attribute abaz http://www.w3.org/2001/XMLSchema#string + } +} diff --git a/libxsd-frontend/tests/schema/annotation/test-000.xsd b/libxsd-frontend/tests/schema/annotation/test-000.xsd new file mode 100644 index 0000000..f768b45 --- /dev/null +++ b/libxsd-frontend/tests/schema/annotation/test-000.xsd @@ -0,0 +1,120 @@ + + + + + schema documentation + + + + + list type documentation + + + + + + + union type documentation + + + + + + + enumeration type documentation + + + + + enumerator documentation (male) + + + + + enumerator documentation (female) + + + + + + + + complex type documentation + + + + + local element efoo documentation + + + + + local element ebar documentation + + + + + + nested local element efoo documentation + + + + + + nested local attribute afoo documentation + + + + + + + local element ebaz documentation + + + + + any documentation + + + + + + local attribute afoo documentation + + + + + local attribute abar documentation + + + + list type documentation + + + + + + + local attribute abaz documentation + + + + + anyAttribute documentation + + + + + + + global element documentation + + + + + + global attribute documentation + + + + diff --git a/libxsd-frontend/tests/schema/annotation/test-001.std b/libxsd-frontend/tests/schema/annotation/test-001.std new file mode 100644 index 0000000..9e2c99a --- /dev/null +++ b/libxsd-frontend/tests/schema/annotation/test-001.std @@ -0,0 +1,36 @@ +primary +{ + namespace test + { + complex type + { + + element ebar + + element efoo + + element ebar + + optional attribute abar http://www.w3.org/2001/XMLSchema#string + + optional attribute afoo http://www.w3.org/2001/XMLSchema#string + + optional attribute abaz http://www.w3.org/2001/XMLSchema#string + [1, 1] sequence + { + [1, 1] element ebar http://www.w3.org/2001/XMLSchema#string + [1, 1] choice + { + [1, 1] element efoo http://www.w3.org/2001/XMLSchema#string + [1, 1] element ebar http://www.w3.org/2001/XMLSchema#string + } + } + } + + element ebar http://www.w3.org/2001/XMLSchema#string + + attribute abar http://www.w3.org/2001/XMLSchema#string + + attribute abaz http://www.w3.org/2001/XMLSchema#string + } +} diff --git a/libxsd-frontend/tests/schema/annotation/test-001.xsd b/libxsd-frontend/tests/schema/annotation/test-001.xsd new file mode 100644 index 0000000..286f63a --- /dev/null +++ b/libxsd-frontend/tests/schema/annotation/test-001.xsd @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + group element efoo documentation + + + + + + + + + global element ebar documentation + + + + + + + group attribute afoo documentation + + + + + + + + global attribute abar documentation + + + + + + global attribute abaz documentation + + + + -- cgit v1.2.3