Giter Site home page Giter Site logo

Relax-NG question about dhclass-hub HOT 2 CLOSED

ebeshero avatar ebeshero commented on June 16, 2024
Relax-NG question

from dhclass-hub.

Comments (2)

ebeshero avatar ebeshero commented on June 16, 2024

Anyone want to help field this? I'm working with @rmz14 to see if we can push this code into the Troubleshooting directory so we can take a closer look together.

from dhclass-hub.

ebeshero avatar ebeshero commented on June 16, 2024

@rmz14 Okay--just looking at your code here, I think I spot a problem:

p = element p {sentence, text, published}
sentence = attribute sentence {text, published}

Here you are saying that p is an element named p and it contains sentence, text, and published.
Then you define sentence as an attribute named sentence, and you say that it contains text and published. But attributes can only contain ONE thing (just an attribute value, which is typically just text (unless we are using a data-type like a date formatted specially as yyyy-mm-dd, etc.). We couldn't imagine an attribute holding anything else besides a value.

My guess is that this is just a simple error, and you meant to define sentence as an element instead of an attribute. Am I right about that?

I think you could be using the mixed syntax for a number of your element definitions here, but only where you have a mix of elements and text, like this:

p = element p {mixed {sentence, published}}

Hope this helps! If you can commit and push your files to the Troubleshooting folder here on our DHClass-Hub, I can download them to test them on my machine--and then make some specific line-comments on your file. I'd like to give that a try, since it'll be a good method for us to help the class!

from dhclass-hub.

Related Issues (20)

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.