Coder Social home page Coder Social logo

fadno-xml's People

Contributors

sirlensalot avatar xogcox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fadno-xml's Issues

"Hello World"

Is it possible to have a Hello Word of your library? I mean, how translate the following “Hello World” of MusicXML?


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE score-partwise PUBLIC
"-//Recordare//DTD MusicXML 3.1 Partwise//EN"
"http://www.musicxml.org/dtds/partwise.dtd">
<score-partwise version="3.1">
<part-list>
<score-part id="P1">
<part-name>Music</part-name>
</score-part>
</part-list>
<part id="P1">
<measure number="1">
<attributes>
<divisions>1</divisions>
<key>
<fifths>0</fifths>
</key>
<time>
<beats>4</beats>
<beat-type>4</beat-type>
</time>
<clef>
<sign>G</sign>
<line>2</line>
</clef>
</attributes>
<note>
<pitch>
<step>C</step>
<octave>4</octave>
</pitch>
<duration>4</duration>
<type>whole</type>
</note>
</measure>
</part>
</score-partwise>

`xs:complexContent` with extension results in unusable recursive type

See StrongAccent:
https://github.com/sirlensalot/fadno-xml/blob/master/src/Fadno/MusicXml/MusicXml31.hs#L11152

fadno-xml/xsd/musicxml.30.xsd

Lines 4453 to 4462 in ee456e4

<xs:complexType name="strong-accent">
<xs:annotation>
<xs:documentation>The strong-accent type indicates a vertical accent mark. The type attribute indicates if the point of the accent is down or up.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="empty-placement">
<xs:attribute name="type" type="up-down" default="up"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

Also affects HeelToe, MetronomeTuplet. Note that xs:basicContent with similar application is handled correctly.

failure to load the library with cabal

Windows PowerShell
Copyright (C) Microsoft Corporation. Tutti i diritti sono riservati.

PS C:\Users\user> cabal --http-transport=plain-http update
Downloading the latest package list from hackage.haskell.org
PS C:\Users\user> cabal install fadno-xml
Resolving dependencies...
cabal.exe: Could not resolve dependencies:
trying: fadno-xml-1.1.0 (user goal)
next goal: base (dependency of fadno-xml-1.1.0)
rejecting: base-4.10.1.0/installed-4.1... (conflict: fadno-xml => base==4.9.*)
rejecting: base-4.10.1.0, base-4.10.0.0, base-4.9.1.0, base-4.9.0.0,
base-4.8.2.0, base-4.8.1.0, base-4.8.0.0, base-4.7.0.2, base-4.7.0.1,
base-4.7.0.0, base-4.6.0.1, base-4.6.0.0, base-4.5.1.0, base-4.5.0.0,
base-4.4.1.0, base-4.4.0.0, base-4.3.1.0, base-4.3.0.0, base-4.2.0.2,
base-4.2.0.1, base-4.2.0.0, base-4.1.0.0, base-4.0.0.0, base-3.0.3.2,
base-3.0.3.1 (constraint from non-upgradeable package requires installed
instance)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, fadno-xml

Is this package only for MusicXml? (Unable to emitSchema for QuickBooks XSD)

I'm trying to use this package to auto-generate the Haskell bindings for a QuickBooks' REST API (they publish an XSD for their API and supporting data-structures).

I followed your code at https://github.com/slpopejoy/fadno-xml/blob/e16b79de5c3273141b676f84f5e971658fa94cdf/src/Fadno/Gen/GenMusicXml.hs and came up with https://github.com/saurabhnanda/quickbooks2/blob/57f59bd314a9c8ef34c1d657b6db4a3ab2554139/src/Lib.hs However, it results in a stack-overflow error, as demonstrated below:

[LOCALHOST:~/projects/haskell-quickbooks (master) saurabhnanda] $ stack ghci
haskell-quickbooks-0.1.0.0: initial-build-steps (lib)
Configuring GHCi with the following packages: haskell-quickbooks
GHCi, version 8.4.3: http://www.haskell.org/ghc/  :? for help
[1 of 1] Compiling Lib              ( /Users/saurabhnanda/projects/haskell-quickbooks/src/Lib.hs, interpreted )
Ok, one module loaded.
Loaded GHCi configuration from /private/var/folders/j7/fgt692sj0wzg0lvrk86ctnxc0000gn/T/ghci78292/ghci-script
*Lib Lib> parseXsd
*** Exception: stack overflow
*Lib Lib> 

How can I debug this further? One difference in the two code snippets is that my code snippet is not using namespaceSchema to adjust namespaces? Would that cause an infinite loop somewhere, or would that cause a dangling reference (and thus, a different error)?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.