rxsd 0.2 → 0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +56 -0
- data/Rakefile +46 -0
- data/bin/gen_ruby_definitions.rb +37 -0
- data/bin/rxsd-test.rb +3 -10
- data/lib/rxsd.rb +1 -1
- data/lib/rxsd/builder.rb +11 -8
- data/lib/rxsd/builders/ruby_class.rb +2 -2
- data/lib/rxsd/builders/ruby_definition.rb +1 -1
- data/lib/rxsd/builders/ruby_object.rb +1 -1
- data/lib/rxsd/builtin_types.rb +32 -9
- data/lib/rxsd/common.rb +2 -1
- data/lib/rxsd/exceptions.rb +1 -1
- data/lib/rxsd/libxml_adapter.rb +61 -24
- data/lib/rxsd/loader.rb +1 -1
- data/lib/rxsd/parser.rb +8 -8
- data/lib/rxsd/resolver.rb +2 -2
- data/lib/rxsd/translator.rb +12 -12
- data/lib/rxsd/xml.rb +31 -18
- data/lib/rxsd/xsd/attribute.rb +1 -1
- data/lib/rxsd/xsd/attribute_group.rb +1 -1
- data/lib/rxsd/xsd/choice.rb +1 -1
- data/lib/rxsd/xsd/complex_content.rb +1 -1
- data/lib/rxsd/xsd/complex_type.rb +3 -2
- data/lib/rxsd/xsd/element.rb +5 -5
- data/lib/rxsd/xsd/extension.rb +1 -1
- data/lib/rxsd/xsd/group.rb +1 -1
- data/lib/rxsd/xsd/list.rb +1 -1
- data/lib/rxsd/xsd/restriction.rb +1 -1
- data/lib/rxsd/xsd/schema.rb +3 -2
- data/lib/rxsd/xsd/sequence.rb +1 -1
- data/lib/rxsd/xsd/simple_content.rb +1 -1
- data/lib/rxsd/xsd/simple_type.rb +1 -1
- data/spec/builder_spec.rb +224 -0
- data/spec/loader_spec.rb +22 -0
- data/spec/parser_spec.rb +475 -0
- data/spec/resolver_spec.rb +609 -0
- data/spec/spec_helper.rb +14 -0
- data/spec/translator_spec.rb +105 -0
- data/spec/types_spec.rb +47 -0
- data/spec/xml_spec.rb +189 -0
- metadata +45 -55
- data/README +0 -19
data/README
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
RXSD - XSD / Ruby Translator
|
2
|
-
Copyright (C) 2009 Mohammed Morsi <movitto@yahoo.com>
|
3
|
-
See COPYING for the License of this software
|
4
|
-
|
5
|
-
RXSD is a library that translates XSD XML Schema Definitions into Ruby Classes
|
6
|
-
on the fly. It is able to read XSD resources and use them to define Ruby
|
7
|
-
classes in memory or string class definitions to be written to the filesystem
|
8
|
-
|
9
|
-
RXSD implements a full XSD parser that not only defines the various xsd schema
|
10
|
-
classes, parsing them out of a XSD file, but translates them into a
|
11
|
-
meta-class heirarchy, for use in subsequent transformations. The builder interface
|
12
|
-
can easily be extended to output any format one could want including classes
|
13
|
-
in other languages (Python, C++, Java, etc), other XML formats, etc.
|
14
|
-
|
15
|
-
RXSD also parses XML conforming to a XSD schema, and instantiates objects
|
16
|
-
corresponding to the XSD classes created. Furthermore, RXSD will work with
|
17
|
-
existing class definitions resulting in a quick way to map XSD to Ruby constructs,
|
18
|
-
letting you define the schema features that you need, and autogenerting handlers
|
19
|
-
to the others.
|