Not getting autosuggest of attributes from XLIFF modules in XLIFF files
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 3
- Joined: Wed Jun 07, 2017 8:46 pm
Not getting autosuggest of attributes from XLIFF modules in XLIFF files
When editing a new XLIFF file, I get autosuggestions of attributes in the Xliff Core module, and autosuggestion of elements from both core and optional xliff modules, but I don't get auto suggestions for attributes that are in modules.
This happens either if I reference the namespace or not.
The xsd is hooked correctly because if I mistype the value of the attribute I get the correct validation error.
Happens on Oxygen v19
Step to reproduce:
Same error happens even if I specify the Namespace for the module, for example:
Even with this code, if I start typing "fs:" I get no autosuggestion.
Not sure where the issue is, whether is in Oxygen or in the XLIFF framework implementation.
Thank you
Simone
This happens either if I reference the namespace or not.
The xsd is hooked correctly because if I mistype the value of the attribute I get the correct validation error.
Happens on Oxygen v19
Step to reproduce:
- Create a new XLIFF 2.0 file from template. You get this file
Code: Select all
<xliff version='2.0'
xmlns='urn:oasis:names:tc:xliff:document:2.0' srcLang="en" trgLang="fr">
<file id="f1">
<unit id="u1">
<segment>
<source></source>
</segment>
</unit>
</file>
</xliff> - Start typing a < after the file element
- You get a dropdown which contains all allowed elements, from the main ns and from all other namespaces
- Now start typing something inside the unit element: here you only get attribute defined in the main NS, not from modules
Same error happens even if I specify the Namespace for the module, for example:
Code: Select all
<xliff version='2.0'
xmlns='urn:oasis:names:tc:xliff:document:2.0'
xmlns:fs='urn:oasis:names:tc:xliff:fs:2.0'
srcLang="en" trgLang="fr">
<file id="f1">
<unit id="u1" >
<segment>
<source></source>
</segment>
</unit>
</file>
</xliff>
Not sure where the issue is, whether is in Oxygen or in the XLIFF framework implementation.
Thank you
Simone
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Not getting autosuggest of attributes from XLIFF modules in XLIFF files
Hi Simone,
I confirm this is a bug in Oxygen, according to how the XLiff XML Schema is constructed Oxygen should propose in its content completion window all possible attributes from all other namespaces for the <unit> element.
If you add those attributes manually like for example the validation will not report any problem:
so it's just a problem of the entries we propose in the content completion window and the attributes view.
Regards,
Radu
I confirm this is a bug in Oxygen, according to how the XLiff XML Schema is constructed Oxygen should propose in its content completion window all possible attributes from all other namespaces for the <unit> element.
If you add those attributes manually like for example the validation will not report any problem:
Code: Select all
<xliff version='2.0'
xmlns='urn:oasis:names:tc:xliff:document:2.0' srcLang="en" trgLang="fr" xmlns:bla="urn:oasis:names:tc:xliff:sizerestriction:2.0">
<file id="f1">
<unit id="u1" bla:equivStorage="blabla">
<segment>
<source></source>
</segment>
</unit>
</file>
</xliff>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Not getting autosuggest of attributes from XLIFF modules in XLIFF files
Hi Simone,
Sorry for the inconvenience.
We started working on the fix and it should be available in Oxygen 19.1 (Autumn this year).
Regards,
Radu
Sorry for the inconvenience.
We started working on the fix and it should be available in Oxygen 19.1 (Autumn this year).
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Not getting autosuggest of attributes from XLIFF modules in XLIFF files
Hi,
Just to update this thread, Oxygen 19.1 was released and it should contain a fix for the reported problem.
Regards,
Radu
Just to update this thread, Oxygen 19.1 was released and it should contain a fix for the reported problem.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service