citeproc-js: unknown attributes now ignored

Following the lead of Charles’ Papers processor, the latest version of
citeproc-js will log unknown attributes when they are encountered in a
CSL style or locale file, but step past them without error.

Frank

This gets to something I earlier mentioned: that we might want to
include something about conformance and foreign attributes in the
spec. As a possible model (I don’t have time to look around for
others), here’s one:

http://www.w3.org/TR/xslt20/#extension-attributes

Hello Frank,

What was the previous behavior?

Regards,
Rob.

It was just throwing an error, with a string naming the unknown
attribute in the error instance object.

Frank

Would it be enough to note that any attributes, or any elements (together
will all their attributes and child elements) not covered by the CSL schema
should be ignored?

Rintze

I don’t know. Elements get complicated. I’ll poke around for other
models (maybe RSS or Atom?) when I have time, and we can compare.

But t

Bruce

This gets to something I earlier mentioned: that we might want to
include something about conformance and foreign attributes in the
spec. As a possible model (I don’t have time to look around for
others), here’s one:

XSL Transformations (XSLT) Version 2.0 (Second Edition)

Would it be enough to note that any attributes, or any elements (together
will all their attributes and child elements) not covered by the CSL
schema
should be ignored?

I don’t know. Elements get complicated. I’ll poke around for other
models (maybe RSS or Atom?) when I have time, and we can compare.

RSS: RSS 2.0 Specification (RSS 2.0 at Harvard Law)
Atom: RFC 4287 - The Atom Syndication Format

But t

Yes, but w! (did you mean to write something here?)

Rintze

This gets to something I earlier mentioned: that we might want to
include something about conformance and foreign attributes in the
spec. As a possible model (I don’t have time to look around for
others), here’s one:

XSL Transformations (XSLT) Version 2.0 (Second Edition)

Would it be enough to note that any attributes, or any elements
(together
will all their attributes and child elements) not covered by the CSL
schema
should be ignored?

I don’t know. Elements get complicated. I’ll poke around for other
models (maybe RSS or Atom?) when I have time, and we can compare.

RSS: http://cyber.law.harvard.edu/rss/rss.html#extendingRss
Atom: RFC 4287 - The Atom Syndication Format

Will take a look (as should others); thanks.

But t

Yes, but w! (did you mean to write something here?)

Yes, new keyboard.

Was just saying the main point is if we do this it makes the earlier
discussion about style branching easier.

What about it? Is it hard to ignore foo:mynewthing and all its contents?
(also, if we’re concerned about forward compatibility of the CSL processor,
it will probably be cs:mynewthing, since extensions would take place in
the CSL namespace)

Rintze