Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespaced schemas don't generate any output #2

Closed
adam-ah opened this issue Jan 16, 2015 · 8 comments
Closed

Namespaced schemas don't generate any output #2

adam-ah opened this issue Jan 16, 2015 · 8 comments
Labels

Comments

@adam-ah
Copy link

adam-ah commented Jan 16, 2015

An XSD with a header like this:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="GSP">
xs:complexType
...

Would generate empty output.

Reason: XSDSchema.m, ln 78 wouldn't pick up any complex types because of the incorrect XPath selector:
NSArray* ctNodes = [node nodesForXPath: @"/schema/complexType" error: error];

Adding full XSD sample here: http://pastebin.com/jkdAPuC9

@Daij-Djan
Copy link
Owner

sorry I think github messed up the line of xsd you wanted to type?
namespacing works fine afaics, id like to see your issue again :)

@MarekR22
Copy link

Hi, I've accoutered exactly same issue and made quick fix for this issue.
It is not perfect solution at least it shows what is the problem:
MarekR22@ff8e686

@Daij-Djan
Copy link
Owner

Hi, I just pushed version 1.5 with swift support and it should incorporate a fix inspired by your workaround. - could you please check this again?

@MarekR22
Copy link

Hi I test it and it works perfectly, thanks.

Wen I've tried fix it myself, I had problems to pass tests.
Can you tell me what is current state of test? Should they all pass? Or do you have some failing test?
On my machine test are failing on master branch (I have enabled Xcode command line tools).

@Daij-Djan
Copy link
Owner

on 10.10 all tests are green and all demo apps work :/
If you’re on 10.11 that’d explain a lot :) ill have to look into that in the next days (see #6)

cheers
Dominik

On Nov 28, 2015, at 10:34 AM, MarekR22 [email protected] wrote:

Hi I test it and it work perfectly, thanks.

Wen I've tried fix it myself, I had problems to pass tests.
Can you tell me what is current state of test? Should they all pass? Or do you have some failing test?
On my machine test are failing on master branch (I have enabled Xcode command line tools).


Reply to this email directly or view it on GitHub #2 (comment).

@Daij-Djan
Copy link
Owner

ok I fixed the unit tests for 10.11. the problem was that I used the /usr/include dir directly and on 10.11 this isn't there by default. They should be all green now. (they are here ;)
the demos work as well

@Daij-Djan Daij-Djan removed their assignment Dec 27, 2015
@Daij-Djan
Copy link
Owner

@Adam-Ho plz verify

@Daij-Djan
Copy link
Owner

im on 10.11 and it works ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants