Search found 108 matches

by dsewell
Wed Jul 18, 2018 4:48 pm
Forum: XSLT and FOP
Topic: Is there a way to enable XPath content completion in text templates in XSLT 3.0?
Replies: 6
Views: 2176

Re: Is there a way to enable XPath content completion in text templates in XSLT 3.0?

I just discovered that this content completion is working when I was testing the use of @expand-text="true" for the first time, using oXygen 20.1. Thanks to the oXygen team for being so thorough in adding UI features that keep up with the changes in XPath/XSLT specifications!
by dsewell
Tue Jun 05, 2018 4:38 pm
Forum: Feature Request
Topic: "Replace" vs. "Replace and Find"
Replies: 2
Views: 949

Re: "Replace" vs. "Replace and Find"

Thanks very much!
by dsewell
Mon Jun 04, 2018 9:42 pm
Forum: Feature Request
Topic: "Replace" vs. "Replace and Find"
Replies: 2
Views: 949

"Replace" vs. "Replace and Find"

I suggested this a couple of years ago and was told the functionality would be added to a future release of oXygen, but I haven't seen it yet, so here is the request again. Currently, in the Find/Replace window, clicking the Replace button makes the change and then immediately moves the cursor to th...
by dsewell
Wed Aug 02, 2017 5:42 pm
Forum: Common Problems
Topic: How to use XQuery 3.1 with oXygen 18 and Saxon EE 9.7?
Replies: 9
Views: 3102

Re: How to use XQuery 3.1 with oXygen 18 and Saxon EE 9.7?

Excellent, I was just about to start learning some of the new features of XQuery 3.1 when I saw that the new release supported it. It may be that the syntax coloring will need to be modified to support new 3.1 features. For example, the array syntax in the third argument to concat() here, which shou...
by dsewell
Fri Jan 27, 2017 11:28 pm
Forum: Feature Request
Topic: Possible to add paste-from-clipboard to Code Template variables?
Replies: 2
Views: 1276

Possible to add paste-from-clipboard to Code Template variables?

Would it be possible to extend the code template utility so that one can have the current system clipboard contents pasted into a specific point? For an example, I have a template that allows me to select text so I can add a target URL: <a href="${caret}">${selection}</ref> That puts my cursor at th...
by dsewell
Fri Oct 28, 2016 4:56 pm
Forum: Common Problems
Topic: Runtime Errors from parse-xml not catched
Replies: 5
Views: 1598

Re: Runtime Errors from parse-xml not catched

Excellent, thanks for the update and the fix.
by dsewell
Fri Aug 28, 2015 10:30 pm
Forum: Common Problems
Topic: Runtime Errors from parse-xml not catched
Replies: 5
Views: 1598

Re: Runtime Errors from parse-xml not catched

There is a similar problem with XQuery and fn:parse-xml(): xquery version "3.0"; declare namespace output = "http://www.w3.org/2010/xslt-xquery-serialization"; declare option output:omit-xml-declaration "true"; try { let $xml-string := '<para>Paragraph</p>' return parse-xml($xml-string) } catch * { ...
by dsewell
Tue Dec 28, 2010 9:21 pm
Forum: Common Problems
Topic: Buggy Find/Replace in Files with long lines and XPath
Replies: 2
Views: 1140

Buggy Find/Replace in Files with long lines and XPath

I have just discovered that some XPath searches on project files are returning incomplete results, and I have identified the cause (or "a cause" at least) as long lines in the source XML. Description: I want to search through all files in a project for a regular expression \d\s+\d (match digits sepa...
by dsewell
Tue Apr 06, 2010 4:25 pm
Forum: XSLT and FOP
Topic: Passing XSLT stylesheet parameter to transform scenario?
Replies: 4
Views: 2182

Re: Passing XSLT stylesheet parameter to transform scenario?

Yes, please create a feature request for a new editor variable that can use the active stylesheet parameters.
by dsewell
Tue Apr 06, 2010 12:13 am
Forum: XSLT and FOP
Topic: Passing XSLT stylesheet parameter to transform scenario?
Replies: 4
Views: 2182

Passing XSLT stylesheet parameter to transform scenario?

When I am creating an XSLT transformation scenario, I would like to be able to use one of the stylesheet parameters (defined in the XSLT tab) in constructing the name of the output file. So for example if I set parameter ID=X123, I would like to define "Save As" using something like Myfile-${param(I...
by dsewell
Wed Nov 11, 2009 8:06 pm
Forum: XSLT and FOP
Topic: context for fo:external-graphic URL?
Replies: 3
Views: 2049

Re: context for fo:external-graphic URL?

thanks for the response--unfortunately I'm travelling for a few days. If I can't resolve the issue locally I'll post something next week.
by dsewell
Fri Nov 06, 2009 9:11 pm
Forum: XSLT and FOP
Topic: context for fo:external-graphic URL?
Replies: 3
Views: 2049

Re: context for fo:external-graphic URL?

and I should have mentioned,

Code: Select all

graphic/@url
resolves to the base filename of the included graphic (with no path information).
by dsewell
Fri Nov 06, 2009 9:08 pm
Forum: XSLT and FOP
Topic: context for fo:external-graphic URL?
Replies: 3
Views: 2049

context for fo:external-graphic URL?

I'm encountering an odd problem. I have an XSLT file that is producing XSL-FO output for transformation to PDF. In my transformation scenario, both XML input file and the XSLT file are in the same directory. I have an FO statement <fo:external-graphic src="url('{graphic/@url}')"/> When I ran this on...
by dsewell
Wed Oct 29, 2008 3:26 pm
Forum: Feature Request
Topic: Transformation output to URL
Replies: 2
Views: 1862

Re: Transformation output to URL

Thank you! :)
by dsewell
Tue Oct 28, 2008 9:46 pm
Forum: Feature Request
Topic: Transformation output to URL
Replies: 2
Views: 1862

Transformation output to URL

Am I correct that it is not possible (even in oXygen 10) to define a custom transformation scenario that sends an output file to a URL?

If so, I would request this as a feature, for example to be able to define a WebDAV or sftp URL for the output file.
by dsewell
Mon Mar 03, 2008 5:10 pm
Forum: Common Problems
Topic: Regex replacement crash
Replies: 3
Views: 1915

Re: Regex replacement crash

The problem with the expression 'x*$' is that it can also match empty strings located at the end of line because of the x*(0-n occurrences of x). When using 'Replace all' there will always be a match of length 0 at the end of any line so the replace will get stuck in an infinite loop. If x+(1-n occ...
by dsewell
Sat Mar 01, 2008 1:33 am
Forum: Common Problems
Topic: Regex replacement crash
Replies: 3
Views: 1915

Regex replacement crash

oXygen 9.1, standalone under Mac OS X

If I try the following regular expression find-and-replace:

Text to find: x*$
Replace with: [empty]

oXygen hangs and has to be killed externally. 'x' above can be any character.
by dsewell
Fri Feb 29, 2008 12:05 am
Forum: Common Problems
Topic: BUG: apostrophe in CSS comment breaks outline
Replies: 3
Views: 1875

Re: BUG: apostrophe in CSS comment breaks outline

After some more experimenting: this is true of both apostrophe (') and quotation mark ("). If they are paired inside the comment, no problem. But a single ' or " breaks the outline.
by dsewell
Thu Feb 28, 2008 11:27 pm
Forum: Common Problems
Topic: BUG: apostrophe in CSS comment breaks outline
Replies: 3
Views: 1875

BUG: apostrophe in CSS comment breaks outline

oXygen 9.1, build 2007122116, standalone under OS X Problem: when a CSS comment contains an apostrophe, it breaks the outline view of the CSS file. Example: body { /* it's a comment */ color: blue; margin-left: 1in; } p { text-indent: 1em; } Only the "body" element is visible in the outline. When th...
by dsewell
Tue Jan 08, 2008 9:24 pm
Forum: Common Problems
Topic: Spacing bug in Author mode, oXygen 9.1
Replies: 5
Views: 2520

I tried on my Mac 10.5.1 and on a 10.4.11 and I could not reproduce it. I think there is a problem with some fonts on that computer. I've seen cases in which some fonts report larger metrics than real, and the layout gets a bit out of the sync. You could try opening the file frameworks/tei/xml/tei/...
by dsewell
Tue Jan 08, 2008 5:45 am
Forum: Common Problems
Topic: Spacing bug in Author mode, oXygen 9.1
Replies: 5
Views: 2520

No bug running under Leopard

I just tried this on another machine running OS X 10.5.1, and I do not see the buggy behavior.
by dsewell
Mon Jan 07, 2008 8:23 pm
Forum: Common Problems
Topic: Spacing bug in Author mode, oXygen 9.1
Replies: 5
Views: 2520

More info

I'm running OS X 10.4.11, with Java version 1.5.0_13
by dsewell
Mon Jan 07, 2008 8:20 pm
Forum: Common Problems
Topic: Spacing bug in Author mode, oXygen 9.1
Replies: 5
Views: 2520

Spacing bug in Author mode, oXygen 9.1

I'm running standalone oXygen 9.1 (build 2007122116) under OS X. I'm finding a bug in space rendering in Author view with a simple TEI document where there is a <hi> tag following UTF-8 quotation marks. I haven't spent time playing around to see whether other non-ASCII characters cause the same beha...
by dsewell
Tue Jul 31, 2007 4:30 pm
Forum: XSLT and FOP
Topic: Using named template instead of source document
Replies: 3
Views: 3116

Except from this initial template thing what are other options you would need to specify that are not in the oXygen preferences? That is the major one. If you add support for the -it template flag, it might be reasonable also to add support for -im mode as well. Using the -i flags is similar to pas...
by dsewell
Mon Jul 30, 2007 10:33 pm
Forum: XSLT and FOP
Topic: Using named template instead of source document
Replies: 3
Views: 3116

Using named template instead of source document

Using Saxon from the command line it is possible to use the -it name flag to run a named template instead of providing a source document. Is there any way to do this from inside oXygen? More generally, is there any way to pass arbitrary command-line arguments to Saxon, or is the set of options in th...
by dsewell
Mon Jun 25, 2007 5:09 pm
Forum: Feature Request
Topic: Schema-aware Format and Indent
Replies: 3
Views: 4066

Thanks, Sorin.

I can imagine that the programming would be complicated. It's not as high a priority as other enhancements that have been discussed, so I'm sure we can be patient.
by dsewell
Fri Jun 22, 2007 5:38 pm
Forum: Feature Request
Topic: Schema-aware Format and Indent
Replies: 3
Views: 4066

Schema-aware Format and Indent

A couple of times in the past, people have posted to the forums about the problem of formatting elements that can take mixed content (according to a schema) but that have only element children in a document instance. For example, <p><b>foo</b><i>bar</i></p> will be formatted as <p> <b>foo</b> <i>bar...
by dsewell
Thu May 31, 2007 7:23 pm
Forum: Common Problems
Topic: Problem with project validation, 8.2
Replies: 1
Views: 2968

Problem with project validation, 8.2

Problem: I have a project open, and select "validate selection with" from the contextual menu. I select a Schematron schema for validation. The validation begins, and the first file is validated. But after that, each subsequent file produces these error lines: [Schematron 1.5 (XSLT 2.0)] Unknown cod...