highsource / highsource/w3c-schemas

Generated Classes are not Serializable

Open
#19 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
13
Forks
13
PR merge metrics
No merged PRs in 30d

Description

It looks like there's a bug that makes https://github.com/highsource/w3c-schemas/tree/master/xhtml unsuable.

Inline content like 'P' expect to be able to add child content like:

p.getContent().add(b);

where getContent() is a List.

But none of the generated inline nodes like B or Em implement the Serializable interface. This makes it impossible to use the generated code to generate rich content like '

Hello World

'.

To make this work I think the following needs to be added to https://github.com/highsource/w3c-schemas/blob/master/xhtml/1.0-Strict/src/main/resources/xhtml-v_1.0-strict.xjb:



Once you do this then all the generated JAXB classes will implement the Serializable interface.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with xhtml/1.0-Strict/src/main/resources/xhtml-v_1.0-strict.xjb and inspect how the JAXB bindings generate the XHTML classes. Apply the requested serializable binding, regenerate the classes, and verify that inline nodes such as B and Em implement Serializable so they can be added to P content.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.