Search found 264 matches
- Tue Jun 30, 2015 10:14 am
- Forum: XML Schemas
- Topic: Default attribute manifestation in Schematron Quick Fixes
- Replies: 7
- Views: 3975
Re: Default attribute manifestation in Schematron Quick Fixe
Hi, an alternative might be not to expand the default attributes but access them from the schema. I implement a function for that: <xsl:function name="my:GetAttributeDefaultValue" as="xs:string?"> <xsl:param name="Element" as="element()"/> <xsl:param name="AttributeName" as="xs:string"/> <xsl:variab...
- Fri Jun 26, 2015 12:16 pm
- Forum: XML Schemas
- Topic: Providing the same sqf:fix for multiple reports
- Replies: 2
- Views: 2367
Providing the same sqf:fix for multiple reports
Hi, I have following schematron rule with quick-fixes: <sch:rule context="Element[text()]"> <sch:report test="matches(text(), '^\s')" sqf:fix="remove-leading-spaces normalize-spaces"> Leading spaces! </sch:report> <sch:report test="matches(text(), '\s+')" sqf:fix="remove-multiple-spaces normalize-sp...
- Thu Jun 18, 2015 11:24 am
- Forum: Feature Request
- Topic: CSS Pseudo-Element "inner(n)"
- Replies: 8
- Views: 3646
Re: CSS Pseudo-Element "inner(n)"
Hi Radu, I already have proper workaround for both cases: For the first one I just added the header-elements to xsd as mandatory elements so they are added automatically as guess elements. For the second one I use :before with oxy_label() as content using fixed width. Just was thinking on a way to m...
- Thu Jun 18, 2015 10:09 am
- Forum: Feature Request
- Topic: CSS Pseudo-Element "inner(n)"
- Replies: 8
- Views: 3646
CSS Pseudo-Element "inner(n)"
Hi, on the users meetup George said you will (probably) add the pseudo-element "outer" in the next release. Now I'd like to get apseudo-element "inner" as well. Use-case 1 Consider this xml <List> <Entry> <Name>1st Parameter</Name> <Value>1111</Value> </Entry> <Entry> <Name>2nd Parameter</Name> <Val...
- Wed Jun 17, 2015 9:06 am
- Forum: Feature Request
- Topic: Improve xslt-refactoring: exclude template
- Replies: 3
- Views: 2435
Improve xslt-refactoring: exclude template
Hi, I have suggestions for improving the xslt refactoring feature "exclude template" (or however the original name is): Don't add global variables/parameter to the parameter list of the template - they are available within the template anyway. For variables/parameters with a type (= @as-attribute) a...
- Mon Jun 15, 2015 9:43 am
- Forum: Feature Request
- Topic: AuthorActionGroup-Button
- Replies: 2
- Views: 1840
Re: AuthorActionGroup-Button
Great, Thanks.
Patrik
Patrik
- Sat Jun 13, 2015 3:42 pm
- Forum: Feature Request
- Topic: AuthorActionGroup-Button
- Replies: 2
- Views: 1840
AuthorActionGroup-Button
Hi, when placing too many action-buttons (using css) in a document then the clarity might drop. So it might be an idea to group similar actions within one popup-button that will list the containing actions when you click on it - similar to a sub-menu. This could also help for the guided authoring of...
- Fri Jun 12, 2015 4:29 pm
- Forum: Common Problems
- Topic: Error message: Cannot insert text inside read-only context
- Replies: 6
- Views: 2483
Re: Error message: Cannot insert text inside read-only conte
Sorry, I can't help you there, so you'll have to wait for the support...
Patrik
Patrik
- Fri Jun 12, 2015 8:27 am
- Forum: Common Problems
- Topic: Error message: Cannot insert text inside read-only context
- Replies: 6
- Views: 2483
Re: Error message: Cannot insert text inside read-only conte
Hi Carole, keeping the author from editing read-only conent is a pure author-mode-feature that can be set within the css. So it's not surprising that you can still edit this in text-mode. To understand the problem you need to provide more information where exactly you're trying to edit text content....
- Tue Jun 02, 2015 3:18 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: Extended frameworks buggy after modifications to base
- Replies: 1
- Views: 1267
Extended frameworks buggy after modifications to base
Hi, I have a custom base-framework and three additional ones that are extensions of my base-framework. Now it apperars from time to time that an AuthorOperation in an extended framework no more works because some parameters are wrong - either because a parameter from the base-frameworks has NOT been...
- Tue Jun 02, 2015 9:19 am
- Forum: XML Schemas
- Topic: SQF XInclude problem
- Replies: 2
- Views: 2375
SQF XInclude problem
Hi, I just made the following experiment with sqf in combination with xinclude: main.xml: <Root xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="included.xml"/> <Element>2</Element> </Root> included.xml: <Element>3</Element> schematron with sqf: <sch:pattern> <sch:rule context="Element[...
- Thu May 28, 2015 8:38 pm
- Forum: XML Schemas
- Topic: QuickFix doesn't resolve substitution groups for missing ele
- Replies: 4
- Views: 3304
Re: QuickFix doesn't resolve substitution groups for missing
Hi Octavian, thanks for adding the issue. About the sqf: You don't have to specify a target for adding a new element. You can simply call an xslt function in the select attribute - I just tested it: <xsl:function name="my:newElement" as="element()"> <xsl:param name="Name" as="xs:string"/> <xsl:eleme...
- Thu May 28, 2015 10:53 am
- Forum: XML Schemas
- Topic: QuickFix doesn't resolve substitution groups for missing ele
- Replies: 4
- Views: 3304
QuickFix doesn't resolve substitution groups for missing ele
Hi, in my xml schema I'm using substitution groups, for instance "StandardSectionElement" which itself is an abstract element but p, ul, sl, ...are added to it as substitution elements. A section should contain at least a single StandardSectionElement after the title. Now for a section with only a t...
- Tue May 26, 2015 12:13 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: createXSLTTransformer with custom configuration
- Replies: 5
- Views: 2436
Re: createXSLTTransformer with custom configuration
Hi Radu, that's what I already did. Furthermore I store the baseCondifuration in a static variable to get it only once: if (baseConfiguration == null) { final String dummyXsl = "<xsl:transform xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\"/>"; TransformerImpl temp = (TransformerI...
- Tue May 26, 2015 11:51 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: createXSLTTransformer with custom configuration
- Replies: 5
- Views: 2436
Re: createXSLTTransformer with custom configuration
Hi Radu,
I implemented it now the way you suggested and it works fine. :)
Thanks again,
Patrik
I implemented it now the way you suggested and it works fine. :)
Thanks again,
Patrik
- Thu May 21, 2015 6:22 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: createXSLTTransformer with custom configuration
- Replies: 5
- Views: 2436
Re: createXSLTTransformer with custom configuration
Hi Radu,
sounds like a great workaround. Will try that...
Thanks,
Patrik
sounds like a great workaround. Will try that...
Thanks,
Patrik
- Thu May 21, 2015 1:57 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: createXSLTTransformer with custom configuration
- Replies: 5
- Views: 2436
createXSLTTransformer with custom configuration
Hi, I would like to change some transformer configurations for XsltOperations. I already implemented my own AuthorOperation-class for it and replaced the XMLUtilAccess.createXSLTTransformer() with the constrution of a saxon transformer. However, when running it, the messages and errors are not displ...
- Wed May 20, 2015 12:07 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: Opening dialog boxes from xslt - It works!
- Replies: 4
- Views: 3225
Re: Opening dialog boxes from xslt - It works!
Just for completeness: One use-cases would be a transformation that potentially overwrites an existing file and asks the user before doing so (if the file already exists). The code looks like this: <xsl:if test="java:fileExists($myFile)"> <xsl:variable name="userDecision" as="xs:integer"> <gui:optio...
- Tue May 19, 2015 2:43 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: Opening dialog boxes from xslt - It works!
- Replies: 4
- Views: 3225
Opening dialog boxes from xslt - It works!
Hi, I lately implmeented a custom saxon instruction that allows to create a a message box or option dialog from within an XSLT. Since it turned out to be pretty easy to implement and very useful within my framework, I just wanted to share this idea - and the joy over oxygen, that even this is possib...
- Mon May 11, 2015 9:07 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: saxon/annotatedConfig.xsd: multiple extensionElement element
- Replies: 1
- Views: 1216
saxon/annotatedConfig.xsd: multiple extensionElement element
Hi, I think there's a bug in saxon/annotatedConfig.xsd: Within xslt element it expects exactly one occurance of extensionElement while the saxon documentation says: "The xslt element may contain one or more extensionElement children defining namespaces used for extension instructions. The extensionE...
- Fri May 08, 2015 10:43 am
- Forum: Common Problems
- Topic: Schematron issue validating conrefs
- Replies: 3
- Views: 1239
Re: Schematron issue validating conrefs
I checked again and can confirm that for me the schematron validation doesn't apply to (standard-)conrefs as well. We just have a special use-case for a "copy-conref" where the referenced content is (automatically) copied into the document. And there - of course - the content is validated as well. R...
- Fri May 08, 2015 8:33 am
- Forum: Common Problems
- Topic: Schematron issue validating conrefs
- Replies: 3
- Views: 1239
Re: Schematron issue validating conrefs
Hi Bryan not sure about your problem with conref (from my experience, schematron validation applies to conrefs as well). But assuming you simply want to check that the attribute of a note element contains one of the valid values, your code is wrong: It checks for the existence of an additional note ...
- Tue May 05, 2015 11:26 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: findNodesByXPath within resolveReference unreliable
- Replies: 3
- Views: 2202
Re: findNodesByXPath within resolveReference unreliable
Hi Alex,
this was just a minimized sample to demonstrate the problem. In my actual use-case I need to execute more complex xpath expressions (specified as default attributes of the element).
Patrik
this was just a minimized sample to demonstrate the problem. In my actual use-case I need to execute more complex xpath expressions (specified as default attributes of the element).
Patrik
- Tue May 05, 2015 8:39 am
- Forum: Common Problems
- Topic: Editing file will change location in Find results
- Replies: 5
- Views: 1871
Re: Editing file will change location in Find results
Hi Ajuan, I think the problem is that each entry listed in the Results tabs holds its own position (line and column). Now when adding or removing lines, the content below it shifted and the stored positions differ from the actual positions... A simple workaround would be to process the results list ...
- Tue May 05, 2015 8:30 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: findNodesByXPath within resolveReference unreliable
- Replies: 3
- Views: 2202
findNodesByXPath within resolveReference unreliable
Hi, I implemented my own ValidatingAuthorReferenceResolver class (derived from DITAConRefResolver) and need to use findNodesByXPath inside resolveReference. In priciple this works fine but when the reference is resolved for the first time (after adding the element to be resolved or modifying in in t...
- Tue May 05, 2015 7:39 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: Automatically add specific optional elements
- Replies: 17
- Views: 8353
Re: Automatically add specific optional elements
Hi Radu,
overriding the set/getAttributes methods in my already existing class BasicCIElement indeed solved that problem.
Thanks
Patrik
overriding the set/getAttributes methods in my already existing class BasicCIElement indeed solved that problem.
Thanks
Patrik
- Mon May 04, 2015 1:02 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: Automatically add specific optional elements
- Replies: 17
- Views: 8353
Re: Automatically add specific optional elements
Hi again, I just noticed that there is another problem when using this in author mode: the additional guess element is not rendered correctly until a refresh. In your original example with the title element in section this means that the text you enter is not being bold (In my use-cases the differen...
- Mon May 04, 2015 11:24 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: Automatically add specific optional elements
- Replies: 17
- Views: 8353
Re: Automatically add specific optional elements
Hi Radu,
your suggested solution with the classpath works fine and feels good. Thanks again.
Patrik
your suggested solution with the classpath works fine and feels good. Thanks again.
Patrik
- Mon May 04, 2015 9:27 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: Automatically add specific optional elements
- Replies: 17
- Views: 8353
Re: Automatically add specific optional elements
Hi Radu, Thanks for your thoughts. I'm using an xml file as configuration now and it works fine. If it turns out to be usefull I will follow your suggestion and replace this xml file by the result of an xsl transformation from the xml schema. So for me there's no need for any improvement from your s...
- Thu Apr 30, 2015 3:48 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: Automatically add specific optional elements
- Replies: 17
- Views: 8353
Re: Automatically add specific optional elements
Hi Radu, I had no previous discussions about this yet. But I already had a customized SchemaManagerFilter - not for adding guessElement, though. With your code I could make it work adding a specific optional element. Thanks for that. :) However, I'm still looking for a comfortable way to mark the "r...