Stream: IG creation
Topic: Language warning, but lang is present
Rick Geimer (Mar 21 2019 at 09:34):
I'm getting the following warning:
Composition/PhCP-Composition-Example: Composition
warning
Resource has a language, but the XHTML does not have a language tag
Here is a snippet of the content:
<language value="en-US"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<p>Pharmacist Care Plan document for Amy Shaw</p>
<p>Managed by Community Health and Hospitals</p>
</div>
</text>
Thoughts? Seems like an invalid warning, but perhaps I am missing something?
Sarah Gaunt (Mar 21 2019 at 10:15):
@Rick Geimer I had this also. I _think_ you need to get rid of the xml:lang="en-US". It was a few days ago now though... Will look through my commits...
Sarah Gaunt (Mar 21 2019 at 10:19):
@Rick Geimer I actually added the lang="en-US" to the <div element as it was missing. I definitely don't have the xml:lang tag in there though and I don't get the error anymore.
Grahame Grieve (Mar 21 2019 at 13:10):
it looks like something I should debug but won't have time till tomorrow
Rick Geimer (Mar 21 2019 at 14:27):
Looks to be fixed now, thanks. Not sure if something you did Grahame or the fact that I removed xml:lang leaving only lang="en-US" per Sarah's suggestion (though I swear I tried that and it wasn't working yesterday).
Grahame Grieve (Mar 21 2019 at 20:21):
if the error was "Resource has a language, but the XHTML does not have a language tag" and you resolved it by diobeying the rule, then I have a problem
Last updated: Apr 12 2022 at 19:14 UTC