Skip to content

Add citizenlab namespace alias to stix files#6

Open
dandye wants to merge 1 commit intocitizenlab:masterfrom
dandye:add_citizenlab_namespace_to_stix
Open

Add citizenlab namespace alias to stix files#6
dandye wants to merge 1 commit intocitizenlab:masterfrom
dandye:add_citizenlab_namespace_to_stix

Conversation

@dandye
Copy link
Copy Markdown

@dandye dandye commented Oct 4, 2020

The stix files fail stix validation[1] because they are missing an alias for the namespace. This PR adds that missing namespace alias.

Each file was modified with:

sed -i.bak 's/=":/="citizenlab:/g'  ./201712_Cyberbit/stix.xml
sed -i.bak 's|xmlns:="https|xmlns:citizenlab="https|' ./201712_Cyberbit/stix.xml

Before

 stix-validator.py ./201712_Cyberbit/stix.xml
[-] Performing xml schema validation on ./201712_Cyberbit/stix.xml
[-] Unexpected error occurred with file './201712_Cyberbit/stix.xml'. No further validation will be performed: Failed to parse QName 'xmlns:', line 29, column 8 (stix.xml, line 29)
================================================================================
[-] Results: ./201712_Cyberbit/stix.xml
[!] Fatal Error: Failed to parse QName 'xmlns:', line 29, column 8 (stix.xml, line 29)

After

stix-validator.py ./201712_Cyberbit/stix.xml
[-] Performing xml schema validation on ./201712_Cyberbit/stix.xml
================================================================================
[-] Results: ./201712_Cyberbit/stix.xml
[+] XML Schema: True

[1] https://github.com/STIXProject/stix-validator

@dandye dandye changed the title Add citizenlab namespace to stix files Add citizenlab namespace alias to stix files Oct 4, 2020
@dandye dandye force-pushed the add_citizenlab_namespace_to_stix branch from 5809ad2 to 8ca5a2f Compare October 4, 2020 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant