movitto / RXSD

XSD / Ruby Translator
http://projects.morsi.org/RXSD
GNU Lesser General Public License v3.0
85 stars 35 forks source link

Element tag's ref attribute does not get set #9

Open stewartmatheson opened 10 years ago

stewartmatheson commented 10 years ago

When parsing an element such as

<xsd:element ref="Common" minOccurs="0"/>

the node.ref seems to return nil and not "Common" as I would expect it do.

movitto commented 10 years ago

Hey @stewartmatheson thx for reaching out.

It's been a while since I hacked on RXSD so a bit rusty on the specifics, though I do remember the full XSD standard implementation wasn't 100% flushed out via the Ruby class hierarchicy. I did add a mechanism which to automatically pick up schema heirarchy and generate classes & objects using the Ruby metaprogramming mechanisms on the fly. Not sure which you are using here (some code would be helpful).

TBH prolly won't be able to devote too many cycles to maintain this project / package going forward but if you wanted to send any PR's I'd be happy to look at them

Take care!

stewartmatheson commented 10 years ago

Hi Mo,

Understand. As it turns out Nokogiri is doing what I need. Thanks for the update.