From: Jacek R. <ja...@ra...> - 2007-02-12 23:18:01
|
Hi Farrukh, If I create a classification scheme as shown below and create label.ProfileComponentType and label.ProfileComponentType.desc properties in src/resources/misc/samples/minDB?ResourceBundle.properties then the values of the labels are are displayed correctly in the client (both swing and html). <rim:ClassificationScheme id="urn:oasis:names:tc:ebxml-regrep:classificationScheme:ProfileComponentType" isInternal="true" nodeType="urn:oasis:names:tc:ebxml-regrep:NodeType:UniqueCode"> <rim:Name> <rim:LocalizedString charset="UTF-8" value=" label.ProfileComponentType" /> </rim:Name> <rim:Description> <rim:LocalizedString charset="UTF-8" value=" label.ProfileComponentType.desc" /> </rim:Description> .... </rim:ClassificationScheme> Since I am generating the XML I would like to to output the names and descriptions directly into the XML doc and append them to ResourceBundle.properties. So the XML I generate looks like this: <rim:ClassificationScheme id="urn:oasis:names:tc:ebxml-regrep:classificationScheme:ProfileComponentType" isInternal="true" nodeType="urn:oasis:names:tc:ebxml-regrep:NodeType:UniqueCode"> <rim:Name> <rim:LocalizedString charset="UTF-8" xml:lang="en-US" value="Profile component type" /> </rim:Name> <rim:Description> <rim:LocalizedString charset="UTF-8" xml:lang="en-US" value="Profile component classification scheme. Profile component may be a profile itself, artefact, conformance target, requirement or assertion" /> </rim:Description> </rim:ClassificationScheme> but when I upload this to omar the strings are wrapped in en-US() so the Name string becomes:"en_US(Profile component type)" rather than just "Profile component type". The result is the same regardles what I set the xml:lang attribute or locale to. Is this the way omar is meant to behave? Cheers J On 2/12/07, Farrukh S. Najmi <fa...@we...> wrote: > > Jacek Radajewski wrote: > > Hi Farrukh, > > > > That's fine. I'll use attachements. In the mean time I do have > > another question: > > > > Because I'm generating the rim:RegistryObjectList I want to be able to > > also generate all rim:LocalizedString/@value content without having to > > create entries in the resource bundles. I'm getting the content of > > the value attribute wrapped with en_US() even if I specify xml:lang to > > be other than en-US. What is the best way for me to generated the > > content for rim:Name/rim:LocalizedString ? > > Hi Jacek, > > I am not clear on the problem you describe. Can you please describe > steps you take to submit stuff and how the problem manifests itself. > Thanks. > > > > > Cheers > > > > Jacek > > > > On 2/11/07, *Farrukh S. Najmi* <fa...@we... > > <mailto:fa...@we...>> wrote: > > > > > > Currently it is not possible to embed XML content in an > > ExtrinsicObject. > > In omar4 this will be possible but that is not likely to be > > available for > > several months. At present the only way to submit arbitrary content > > is via a RepositoryItem (attachment) to an ExtrinsicObject. > > > > Sorry for this current limitation. > > > > > > > -- > Regards, > Farrukh > > Web: http://www.wellfleetsoftware.com > > > -- Jacek Radajewski |