[GeoNetwork-devel] codelist are loosing text() portions

The codelists such as the following

     <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/&quot;
codeListValue="eng">English</gmd:LanguageCode>

are being converted to

     <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/&quot;
codeListValue="eng"/>

or

     <gmd:MD_CharacterSetCode
codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml#MD_CharacterSetCode&quot;
codeListValue="utf8">utf8</gmd:MD_CharacterSetCode>

is being converted to

     <gmd:MD_CharacterSetCode
codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml#MD_CharacterSetCode&quot;
codeListValue="utf8"/>

I know how to fix this in "update-fixed-info.xsl" - by simply applying a
"<xsl:apply-templates select="node()"/>" to the codelist templates.

If I make the change then the text portion is no longer removed (which is
good). However when editing the language (i.e.: change English to French) I
end with a situation where the text portion is out of sync
<gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/&quot;
codeListValue="fre">English</gmd:LanguageCode>

I suspect that to update the text portion during editing is a bigger change
(I'm a little lost with this change).

I was wondering if this was done on purpose - can anyone tell me if this a
bug or a feature?

Thank you

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/codelist-are-loosing-text-portions-tp4986235.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.