Search found 22 matches

by serioadamo97
Sun Mar 04, 2018 4:19 pm
Forum: SDK-API, Frameworks - Document Types
Topic: How to customize "Show Definition" (or Quick Assist) feature for my own framework?
Replies: 5
Views: 3484

Re: How to customize "Show Definition" (or Quick Assist) feature for my own framework?

Thanks, it works.
But finally, I used the XPath expression instead of developing extra plug-ins to implement the feature of Show Definition.
by serioadamo97
Wed Feb 28, 2018 4:17 pm
Forum: Common Problems
Topic: Can I define custom function in XSLT for XPath Builder?
Replies: 12
Views: 5024

Re: Can I define custom function in XSLT for XPath Builder?

XPath expression support context node, it is very convenient.
Because we can use mouse cursor position infomation in original xml, it is good if XQuery also support it.
Otherwise, we have to pass the parameter to XQuery manually.
by serioadamo97
Tue Feb 27, 2018 9:16 pm
Forum: Common Problems
Topic: Can I define custom function in XSLT for XPath Builder?
Replies: 12
Views: 5024

Re: Can I define custom function in XSLT for XPath Builder?

Hi, Indeed right now the nodes displayed after running an XQuery point to intervals in the output XML. From what I looked in our code we could possibly add a contextual menu action on each result node to also open the original XML document from which the node was loaded and navigate to the node lin...
by serioadamo97
Tue Feb 27, 2018 8:11 pm
Forum: General XML Questions
Topic: XSLT which output non-xml text in XProc
Replies: 3
Views: 3574

XSLT which output non-xml text in XProc

I have a XSLT to generate code text.xsl: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0"> <xsl:ou...
by serioadamo97
Tue Feb 27, 2018 11:37 am
Forum: Common Problems
Topic: Can I define custom function in XSLT for XPath Builder?
Replies: 12
Views: 5024

Re: Can I define custom function in XSLT for XPath Builder?

Hi, If you create an XQuery document and for it create a transformation scenario, in the "Output" tab of the transformation scenario config dialog you have the option to "Present as a sequence". Regards, Radu Hi, I have checked "Present as a sequence" and the result se...
by serioadamo97
Mon Feb 26, 2018 10:37 pm
Forum: Common Problems
Topic: Why no indent when use XProc to execute XSLT?
Replies: 2
Views: 1793

Why no indent when use XProc to execute XSLT?

XSLT file (test-xproc.xsl): <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0"> <xsl:output method=&...
by serioadamo97
Mon Feb 26, 2018 7:53 pm
Forum: Common Problems
Topic: Can I define custom function in XSLT for XPath Builder?
Replies: 12
Views: 5024

Re: Can I define custom function in XSLT for XPath Builder?

Hi, Maybe instead of using our XPath view you could create separate XQuery files for each expression, at least in the XQuery files you could import common library XQuery files. Regards, Radu But the results of executing separate XQuery files are not in XPath Result View. XPath's Results View is ver...
by serioadamo97
Fri Feb 23, 2018 9:34 pm
Forum: Common Problems
Topic: Can I define custom function in XSLT for XPath Builder?
Replies: 12
Views: 5024

Re: Can I define custom function in XSLT for XPath Builder?

Hi tavy, I create a Java extension function which return a node list like below: public static NodeList getNode() throws SAXException, IOException, ParserConfigurationException { DocumentBuilder db = ParserCreator.newDocumentBuilder(); Document doc = db.parse(new File("D:/Global.xml")); re...
by serioadamo97
Fri Feb 23, 2018 7:52 pm
Forum: Feature Request
Topic: XProc Visual Editor
Replies: 1
Views: 2098

XProc Visual Editor

I found that there are some XProc visual editor on the Internet. For example: https://community.emc.com/docs/DOC-4382 . https://community.emc.com/servlet/JiveServlet/downloadImage/7500/xproc-designer-pane.png This would be very useful because by using Visual Editor we only need to simply drag and dr...
by serioadamo97
Fri Feb 23, 2018 7:35 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Is it possiable to make Content-Completion support inline/embedded language?
Replies: 1
Views: 2061

Is it possiable to make Content-Completion support inline/embedded language?

Hi all, After reading documents from the website, I learned how to developed a plugin which can customize Content-Completion. (Also it can be implemented by cc_config.xml in framework) However, I want to get more. Is it possiable to make Content-Completion support inline/embedded language? Example 1...
by serioadamo97
Fri Feb 23, 2018 1:10 pm
Forum: Common Problems
Topic: Can I define custom function in XSLT for XPath Builder?
Replies: 12
Views: 5024

Can I define custom function in XSLT for XPath Builder?

I have some XPath expression in XPath Builder favorites . These expression has a bit complicated and long, for example: let $contextNode := ., $workspace := prov:getPluginWorkspace(), $editorAccess := work:getCurrentEditorAccess($workspace, 0), $pdu := editor-vars:expandEditorVariables('${pdu}', $ed...
by serioadamo97
Fri Feb 23, 2018 12:25 pm
Forum: Common Problems
Topic: How to manage favorites in XPath Builder?
Replies: 1
Views: 1490

How to manage favorites in XPath Builder?

I have add some XPath expression into favorites . Is is possiable to shared favorites with other members of team? I can use XSLT for the same purpose, but XSLT has no Result View (it only generate a new file). XPath's Results View is very useful, because we can click a record in the Results View to ...
by serioadamo97
Fri Feb 16, 2018 6:38 pm
Forum: Common Problems
Topic: Content-Completion can't work in some situation, when using master file.
Replies: 1
Views: 1444

Content-Completion can't work in some situation, when using master file.

In order to describe this question, let me give two examples: First example: I write the following xsd: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:complexType name="Tab...
by serioadamo97
Thu Feb 15, 2018 8:50 pm
Forum: SDK-API, Frameworks - Document Types
Topic: How to customize "Show Definition" (or Quick Assist) feature for my own framework?
Replies: 5
Views: 3484

Re: How to customize "Show Definition" (or Quick Assist) feature for my own framework?

Hi, My question is how to customize "Show Definition" (or Quick Assist) feature for my own framework? In short you can't, it's not customizable, there's no API to redefine its behavior. The implementation is completely different for each specialized editor. For XML files "Show Defini...
by serioadamo97
Wed Feb 14, 2018 11:40 am
Forum: SDK-API, Frameworks - Document Types
Topic: How to customize "Show Definition" (or Quick Assist) feature for my own framework?
Replies: 5
Views: 3484

How to customize "Show Definition" (or Quick Assist) feature for my own framework?

For example, in XSLT we have following code: <xsl:template match="/"> <xsl:call-template name="foo"/> </xsl:template> <xsl:template name="foo"> <foo></foo> </xsl:template> When we place the cursor inside "foo" , we can click "Show Definition" button ...
by serioadamo97
Tue Feb 13, 2018 7:50 pm
Forum: Common Problems
Topic: How to use Oxygen XML Editor to develop DSL IDE?
Replies: 3
Views: 2280

Re: How to use Oxygen XML Editor to develop DSL IDE?

Hi, I'm afraid it's not possible to use/customize Oxygen XML Editor for editing (with helpers) custom content other than XML. The "Content Completion Configuration" only works for XML. There is no way to provide user defined syntax highlight (color coding) and content completion rules in ...
by serioadamo97
Mon Feb 12, 2018 9:08 pm
Forum: Common Problems
Topic: How to use Oxygen XML Editor to develop DSL IDE?
Replies: 3
Views: 2280

How to use Oxygen XML Editor to develop DSL IDE?

Hi, I've been using Oxygen XML Editor for a while, but my main job is to focus on XML document editing, XSD design, validation, and XSLT transformations, it's really good. Now, I want to use XML to create DSL (domain-specific-language). My DSL is a kind of data instance definition language: There ar...
by serioadamo97
Mon Feb 12, 2018 8:03 pm
Forum: Common Problems
Topic: How to use XSD 1.1 in xProc?
Replies: 3
Views: 2219

Re: How to use XSD 1.1 in xProc?

Hi, What version of Oxygen are you using? Older versions of Calabash XProc (prior to 2014) could not be configured to use Saxon-EE with a custom configuration. It seems there was a bug in XProc that made it ignore the Saxon config file. For recent versions, you should copy/edit the file Oxygen\lib\...
by serioadamo97
Sun Feb 11, 2018 8:41 pm
Forum: Common Problems
Topic: How to use XSD 1.1 in xProc?
Replies: 3
Views: 2219

How to use XSD 1.1 in xProc?

Hi, I use the following xProc file to validate xml. <p:declare-step version="1.0" xmlns:p="http://www.w3.org/ns/xproc"> <p:input port="source"> <p:document href="BookStore.xml"/> </p:input> <p:output port="result"> <p:pipe step="myValidate"...
by serioadamo97
Tue Jan 09, 2018 10:18 am
Forum: Common Problems
Topic: Can I use text file as primary input of XSLT?
Replies: 7
Views: 8663

Re: Can I use text file as primary input of XSLT?

Hi, XSLT needs to be applied over XML content, even if inside it reads a separate text file and uses only that text file contents. In XSLT 3.0 they added a feature called "initial template". You specify in the transformation scenario that a certain named template is your initial template ...
by serioadamo97
Mon Jan 08, 2018 7:40 pm
Forum: Common Problems
Topic: Can I use text file as primary input of XSLT?
Replies: 7
Views: 8663

Can I use text file as primary input of XSLT?

I want to use a text file as primary input. For example: In XSLT debugger perspective view, select XML: mytext.txt, select XSLT: myT2X.xsl. myT2X.xsl is : <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs=&q...