capstone icon indicating copy to clipboard operation
capstone copied to clipboard

Add <img> to casebody xml schema

Open jcushman opened this issue 5 years ago • 1 comments

We've now added tags to our XML output to match the HTML output -- should document in the casebody xml schema.

jcushman avatar Jan 28 '20 20:01 jcushman

@jcushman: Do we have an idea where images occur within a case? Just opinions? Also in headnotes, etc?

ChefAndy avatar Jan 29 '20 18:01 ChefAndy

Schemas live in another repo. Find the link and pursue.

kilbergr avatar Dec 14 '22 15:12 kilbergr

https://github.com/harvard-lil/CaselawAccessProjectSchemas

jcushman avatar Dec 14 '22 15:12 jcushman

@jcushman can you check I have perms to access this repo? I get 404 despite being signed in/in the LIL org.

kilbergr avatar Jan 04 '23 16:01 kilbergr

https://github.com/harvard-lil/CaselawAccessProjectSchemas/pull/2

Explanation added to the above repo about why we care about keeping this up to date:

These schemas are linked as a reference in CAP's XML documents via the <xmlns> attribute. We intend to keep them up to date with our XML documents to avoid future confusion around XML formats for the document types within this repo.

An example: https://api.case.law/v1/cases/2747110/?full_case=true&body_format=xml Contains

"data": "<?xml version='1.0' encoding='utf-8'?>\n<casebody firstpage=\"1\" lastpage=\"5\" xmlns=\"[http://nrs.harvard.edu/urn-3:HLS.Libr.US_Case_Law.Schema.Case_Body:v1\](http://nrs.harvard.edu/urn-3:HLS.Libr.US_Case_Law.Schema.Case_Body:v1%5C)">\n

That url redirects to the schema, so we want the schema to look like the casebody doc.

kilbergr avatar Jan 04 '23 23:01 kilbergr