Search found 22 matches
Search found 22 matches
• Page 1 of 1
- by yann1806
- Fri Nov 08, 2013 2:45 am
- Forum: Common Problems
- Topic: Validating against an xml schema with a plugin
- Replies: 10
- Views: 5192
Re: Validating against an xml schema with a plugin
Brilliant!
Thanks
Yannick
Thanks
Yannick
- by yann1806
- Thu Nov 07, 2013 4:38 am
- Forum: Common Problems
- Topic: Validating against an xml schema with a plugin
- Replies: 10
- Views: 5192
Re: Validating against an xml schema with a plugin
Ah never mind, got it:
new StreamSource(new StringReader(IOUtils.toString(editor.createContentReader())))
Thanks for the help, much apreciated!
Yannick
new StreamSource(new StringReader(IOUtils.toString(editor.createContentReader())))
Thanks for the help, much apreciated!
Yannick
- by yann1806
- Wed Nov 06, 2013 7:04 pm
- Forum: Common Problems
- Topic: Validating against an xml schema with a plugin
- Replies: 10
- Views: 5192
Re: Validating against an xml schema with a plugin
Hi Lulian,
thanks - got it, it works.
My last question is: to validate the content before saving: how can I transform the current editor content Reader object returned by createContentReader() to a Source object for the newSchema() method?
I can't find the right API.
Thanks,
Yannick
thanks - got it, it works.
My last question is: to validate the content before saving: how can I transform the current editor content Reader object returned by createContentReader() to a Source object for the newSchema() method?
I can't find the right API.
Thanks,
Yannick
- by yann1806
- Tue Nov 05, 2013 6:49 pm
- Forum: Common Problems
- Topic: Validating against an xml schema with a plugin
- Replies: 10
- Views: 5192
Re: Validating against an xml schema with a plugin
Hi Lulian, thanks for your answer. I want to programatically validate the XSD document itself, for example: <xs:sequence> <xs:element maxOccurs="unbounded" ref="block"/> </xs:sequence> is valid in an XSD, but something like: <xs:sequenceABCDEF> <xs:element maxOccurs="unbound...
- by yann1806
- Tue Nov 05, 2013 3:47 am
- Forum: Common Problems
- Topic: Validating against an xml schema with a plugin
- Replies: 10
- Views: 5192
Re: Validating against an xml schema with a plugin
Hi guys, reusing this topic because it's so close to my question: how can I validate an XSD that is part of a framework? I want to intercept the save so that the XSD is validated (against the XSD language definition). I am not trying to validate an XML against an XSD (the example given above), I'm t...
- by yann1806
- Mon Sep 30, 2013 12:50 pm
- Forum: Other Issues
- Topic: Removing certain menu options from framework menu
- Replies: 3
- Views: 1988
Re: Removing certain menu options from framework menu
Hi guys, following to this question - how can I implement hiding or showing menu options when the user takes an arbitrary action? In my case, when my user logs in to a remote repository (via my plugin), I want to show extra menus. But of course the listeners has methods for editor opened, editor clo...
- by yann1806
- Wed Sep 11, 2013 8:27 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: Implementing Smart Paste for my own document type
- Replies: 2
- Views: 2793
Re: Implementing Smart Paste for my own document type
I forgot to mention that my schema aware preferences do have smart paste enabled, but it's not pasting smartly into my doc
- by yann1806
- Wed Sep 11, 2013 8:25 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: Implementing Smart Paste for my own document type
- Replies: 2
- Views: 2793
Implementing Smart Paste for my own document type
Hi guys, I have my own document type (based on an XSD schema); the schema includes html-style formatting tags for lists, bold, italics, paragraphs and such. I'd like to implement smart paste so that docs from Word can retain this kind of formatting, but I'm not clear on whether I need to implement A...
- by yann1806
- Tue Sep 10, 2013 7:17 pm
- Forum: Feature Request
- Topic: Multilingual language support for Frameworks
- Replies: 3
- Views: 2860
Re: Multilingual language support for Frameworks
Hi Radu, wondering if there's been a change on this question since it was answered? I need to have a schema that would support multiple languages (the whole document is in a single language). Then the CSS picks up on it via the "lang" selector (works very nicely :) ). But ideally I don't w...
- by yann1806
- Wed Sep 04, 2013 11:45 am
- Forum: Other Issues
- Topic: Action that inserts a tag and moves the cursor to after that
- Replies: 2
- Views: 1637
Re: Action that inserts a tag and moves the cursor to after
Works beautifully - and yes of course, makes sense that there can still be attributes.
Thanks,
Yann
Thanks,
Yann
- by yann1806
- Wed Sep 04, 2013 11:43 am
- Forum: Common Problems
- Topic: Empty xmlns generated by actions
- Replies: 2
- Views: 1671
Re: Empty xmlns generated by actions
Thanks Radu.
- by yann1806
- Wed Sep 04, 2013 11:10 am
- Forum: Other Issues
- Topic: Action that inserts a tag and moves the cursor to after that
- Replies: 2
- Views: 1637
Action that inserts a tag and moves the cursor to after that
Hi guys, I want to write an InsertFragmentOperation action that inserts "<br/>" and moves the cursor to after that new "<br/>" tag; the tag in the schema is declared so that it doesn't allow any text inside. In my Author / Action tab, I do have goToNextEditablePosition to true fo...
- by yann1806
- Mon Sep 02, 2013 11:03 am
- Forum: Common Problems
- Topic: Show action buttons only when valid
- Replies: 3
- Views: 1959
Re: Show action buttons only when valid
Thanks for the clear response Alex, appreciated. Yann Hello Yann, As you already discovered each action has some XPath conditions that control whether it's active or not in a given context. Right now the only solution for your use case is writing XPath expressions to identify each context where the ...
- by yann1806
- Sat Aug 31, 2013 7:52 am
- Forum: Common Problems
- Topic: Show action buttons only when valid
- Replies: 3
- Views: 1959
Show action buttons only when valid
Hi guys, I'm wondering if there is a way to make toolbar buttons active only when the action they represent is valid based on the XSD? For example in Author mode, the completion menu that comes with an "Enter" keypress shows only the tags that are valid to be inserted at the current locati...
- by yann1806
- Fri Aug 30, 2013 2:15 pm
- Forum: Common Problems
- Topic: Empty xmlns generated by actions
- Replies: 2
- Views: 1671
Empty xmlns generated by actions
Hi guys, I have an add-on XSD with the following header: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.oxygenxml.com/ns/labtest" xmlns="ht...
- by yann1806
- Thu Aug 29, 2013 8:40 am
- Forum: XML Schemas
- Topic: Sample XML schema for rich text / limited HTML
- Replies: 1
- Views: 3410
Sample XML schema for rich text / limited HTML
Hi guys, I'm wondering if there is somewhere in Oxygen a sample XSD that would allow very simplified HTML (e.g. bold, italics, bullet lists), that I could use inside my own elements. I'd like to have documents that look like: <my_title_tag>This word is <b>bold</b></my_title_tag> <my_body_tag>a list:...
- by yann1806
- Tue Aug 20, 2013 3:58 pm
- Forum: Other Issues
- Topic: oxy_popup values from XSD?
- Replies: 5
- Views: 2326
Re: oxy_popup values from XSD?
Hi Alex,
very helpful again, thanks!
Sure, if you can send me the code for the popup form control, it would definitely be useful.
Thanks
Yann
very helpful again, thanks!
Sure, if you can send me the code for the popup form control, it would definitely be useful.
Thanks
Yann
- by yann1806
- Tue Aug 20, 2013 5:36 am
- Forum: Other Issues
- Topic: oxy_popup values from XSD?
- Replies: 5
- Views: 2326
Re: oxy_popup values from XSD?
Alex, one more question about that; supposed I want to define my values in CSS, not in the schema. Is there a way to obtain a widget where the user could choose one of the predefined values *OR* enter any arbitrary text? The idea is that I have some common values for this attributes, so it's nice to...
- by yann1806
- Mon Aug 19, 2013 2:24 pm
- Forum: Other Issues
- Topic: oxy_popup values from XSD?
- Replies: 5
- Views: 2326
Re: oxy_popup values from XSD?
Hi Alex,
it works fine. Thanks!! I guess the values have to be the same as the variables, yes, but I'm fine with that.
Yann
it works fine. Thanks!! I guess the values have to be the same as the variables, yes, but I'm fine with that.
Yann
- by yann1806
- Mon Aug 19, 2013 7:35 am
- Forum: Other Issues
- Topic: oxy_popup values from XSD?
- Replies: 5
- Views: 2326
oxy_popup values from XSD?
Hi guys,
wondering if there is a way in CSS to generate a nice popup menu (with oxy_popup), but having the labels/values coming straight from the XSD to avoid any duplication?
Thanks
Yann
wondering if there is a way in CSS to generate a nice popup menu (with oxy_popup), but having the labels/values coming straight from the XSD to avoid any duplication?
Thanks
Yann
- by yann1806
- Fri Aug 09, 2013 6:50 pm
- Forum: Other Issues
- Topic: Document creation API?
- Replies: 3
- Views: 1924
Re: Document creation API?
Hi Alex,
thanks for the reply. I'm wondering if there is an API call that does the same as the wizard (Create XML file / use XSD template), or if we have to create by hand the file content that the wizard would produce, and then create the new editor with this file?
Thanks
Yannick
thanks for the reply. I'm wondering if there is an API call that does the same as the wizard (Create XML file / use XSD template), or if we have to create by hand the file content that the wizard would produce, and then create the new editor with this file?
Thanks
Yannick
- by yann1806
- Fri Aug 09, 2013 11:19 am
- Forum: Other Issues
- Topic: Document creation API?
- Replies: 3
- Views: 1924
Document creation API?
Hello there, new to Oxygen - I want to develop a plugin with a button that will create a document based on the provided XSD (skipping the wizard, I want to create the document type I need in only one button). I can't find the right API to create a document... thanks for pointing me toward what I'm m...
Search found 22 matches
• Page 1 of 1
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