creating a new schema file - a bug with autocompletion
Having trouble installing Oxygen? Got a bug to report? Post it all here.
creating a new schema file - a bug with autocompletion
Post by dominik »
I encountered a problem when using the automatically generated schema file. After I choose to create a new schema file, the template declares xs:schema namespace. When I try to add a new element, the editor does not provide me with a list of options. Renaming xs:schema tags to schema fixes the problem.
It looks like either the autogenerated template or editor should be fixed. Thoughts?
- Dominik
P.S. I'm using an evaluation version of oXygen 4.2.
It looks like either the autogenerated template or editor should be fixed. Thoughts?
- Dominik
P.S. I'm using an evaluation version of oXygen 4.2.
Hi Dominik,
Oxygen should give you content completion proposals on a schema no matter what prefix is used or if the http://www.w3.org/2001/XMLSchema is the default namespace. Maybe it just needed some time to parse the schema for schemas.
should work as well as
or
Best Regards,
George
Oxygen should give you content completion proposals on a schema no matter what prefix is used or if the http://www.w3.org/2001/XMLSchema is the default namespace. Maybe it just needed some time to parse the schema for schemas.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<prefix:schema xmlns:prefix='http://www.w3.org/2001/XMLSchema'>
</prefix:schema>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
</xs:schema>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns='http://www.w3.org/2001/XMLSchema'>
</schema>
George
more info
Hi George,
Unfortunately, Oxygenxml does not seem to work the way you explained it.
My simple schema file is:
and the only elements available in auto-complete are:
- Dominik
Unfortunately, Oxygenxml does not seem to work the way you explained it.
My simple schema file is:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns='http://www.w3.org/2001/XMLSchema'
xmlns:dk="http://www.foo.com/dk"
targetNamespace="http://www.foo.com/dk">
</xs:schema>
Code: Select all
</xs:schema>
<![CDATA[]]>
<!-- -->
Hi Dominik,
Oxygen is right to present those proposals because your document is not well formed, the xs prefix is not bound. I guess you ment to have:
xmlns:xs='http://www.w3.org/2001/XMLSchema'
Now the content completion should present you the schema elements.
Best Regards,
George
Oxygen is right to present those proposals because your document is not well formed, the xs prefix is not bound. I guess you ment to have:
xmlns:xs='http://www.w3.org/2001/XMLSchema'
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'
xmlns:dk="http://www.foo.com/dk"
targetNamespace="http://www.foo.com/dk">
</xs:schema>
Best Regards,
George
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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