Comments (2)
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.
@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)
- HTML Semantic Elements for structuring a page
- Steve Ramsay: "The Hermeneutics of Screwing Around" and "In Praise of Pattern" HOT 13
- NEWS HOT 2
- XPath format-date() picture strings
- First XQuery over Banksy from class today
- Saving XQuery Files
- Network Analysis HOT 16
- Schematron Quick Fix HOT 1
- SOS: Cytoscape is my mortal enemy HOT 8
- M 3/23 Class Sign-in HOT 12
- Slack Chat for DH class
- Semester project presentations HOT 1
- zoom video HOT 3
- Date Arithmetic for Data Visualization: User-Defined Functions in XQuery
- Resources on JavaScript Properties, Methods, Events
- Upcoming Presentations!
- Choose a Creative Commons License for Your Project
- Friday April 17: Presentation Day and Feedback!
- XPath: Taking Average of values derived by a FLOWR statement HOT 8
- Extended due date for semester projects in the quarantine semester
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dhclass-hub.