Search found 42 matches

by William
Fri Jan 04, 2013 5:01 pm
Forum: Common Problems
Topic: Oxygen not using JRE 1.7.0_10
Replies: 5
Views: 2214

Re: Oxygen not using JRE 1.7.0_10

Hi Adrian
How did you set the JAVA_HOME environment variable?
Incorrectly as it would appear! I only updated .bashrc and neglected to update the .profile, so apart from forgetfulness the only other thing I can attempt to blame is the fact that it was New Year's Day! :oops:

--
William.
by William
Fri Jan 04, 2013 2:06 pm
Forum: Common Problems
Topic: Oxygen not using JRE 1.7.0_10
Replies: 5
Views: 2214

Re: Oxygen not using JRE 1.7.0_10

Hello William, As long as there is a folder named jre in the Oxygen installation folder (with a Java Runtime Environment), Oxygen will use that one. If you want to bypass the Oxygen bundled JRE and use a different JRE instead (from JAVA_HOME or PATH environment variables), you can simply rename the...
by William
Fri Jan 04, 2013 12:28 pm
Forum: Common Problems
Topic: Oxygen not using JRE 1.7.0_10
Replies: 5
Views: 2214

Re: Oxygen not using JRE 1.7.0_10

Hello. As there is no reply to this (as yet) I suspected that the post was a bit thin and as I'm not clairvoyant I thought it best to update it to say that regardless of how many JREs are installed on the machine Oxygen will not make use of 1.7.0_10 even if it is the only physical JRE installed and ...
by William
Tue Jan 01, 2013 1:47 pm
Forum: Common Problems
Topic: Oxygen not using JRE 1.7.0_10
Replies: 5
Views: 2214

Oxygen not using JRE 1.7.0_10

Hello. I have just upgraded our JRE & JDK to 1.7.0_10 and updated JAVA_HOME to reflect this and logged out and in again. Having already renamed our jre directory (jreold) Oxygen didn't use the new JRE but used an older version. I had assumed it would use the newest version. Anyway to get it to work ...
by William
Thu Nov 29, 2012 5:11 pm
Forum: XSLT and FOP
Topic: Needing help with a Schematron or XPath solution please.
Replies: 0
Views: 1727

Needing help with a Schematron or XPath solution please.

Hello, is anyone able to help with this, it's making my head hurt! I have a set of N elements (where N can be in the 1000s) called 'foo' with each having 5 attributes called bar1, bar2, bar3, bar4 and bar5. In addition I also have an attribute (from another set of elements) called minimum and equal ...
by William
Thu Nov 29, 2012 1:36 pm
Forum: XSLT and FOP
Topic: Saving generated XSLT file from Schematron validation.
Replies: 2
Views: 3180

Re: Saving generated XSLT file from Schematron validation.

Talk about missing the obvious! Thanks Costin.

--
William
by William
Thu Nov 29, 2012 12:09 pm
Forum: XSLT and FOP
Topic: Saving generated XSLT file from Schematron validation.
Replies: 2
Views: 3180

Saving generated XSLT file from Schematron validation.

Hello. I have created a valid .sch (Schematron) file and used it successfully against an input file, but is it possible to save the intermediate XSLT file generated during the validation process for use elsewhere? Or generate one directly for saving? I'm using Oxygen XML Developer 14.1, build 201210...
by William
Mon Nov 05, 2012 6:53 pm
Forum: XSLT and FOP
Topic: Java Extensions with Saxon
Replies: 5
Views: 3208

Re: Java Extensions with Saxon

Thank you very much Adrian. I've now changed oxygen to use the 1.7.0._07 JRE by following your instructions and all of my errors have now disappeared :D, so thank you again for your time.

--
William
by William
Mon Nov 05, 2012 6:22 pm
Forum: XSLT and FOP
Topic: Java Extensions with Saxon
Replies: 5
Views: 3208

Re: Java Extensions with Saxon

Hello. OK I've found the problem it is my fault (well sort of) but better error messages would be beneficial. The original jar file is built using v1.7.0_07 of the JDK but when I create 1.6 compatible test jar it works! I can't change the Java code so how can I make oxygen compatible with 1.7.0_07 J...
by William
Mon Nov 05, 2012 5:50 pm
Forum: XSLT and FOP
Topic: Java Extensions with Saxon
Replies: 5
Views: 3208

Re: Java Extensions with Saxon

Hello, It should have worked, I don't see any problems in the XSLT code, the problem lies elsewhere. Is the constructor of the java class (you.RM.Definition) public? Yes. Make sure the folder path from the jar (open it with a ZIP tool) is structured correctly: you/RM/Definition.class Yes again this...
by William
Mon Nov 05, 2012 12:58 pm
Forum: XSLT and FOP
Topic: Java Extensions with Saxon
Replies: 5
Views: 3208

Java Extensions with Saxon

Hello, I am trying to create an XSLT transformer that gets some of its data from a Java object. I am using <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:RM="java:you.RM.Definition" exclude-result-prefixes="xs RM"> and...
by William
Wed Aug 22, 2012 7:05 pm
Forum: XSLT and FOP
Topic: Change multiple elements of type X for a single type Y
Replies: 0
Views: 1923

Change multiple elements of type X for a single type Y

Hello. I have in my XML 10000s of elements formatted thus: <row id="1" value="488" /> <row ... /> <row id="499" value="488" /> <row id="500" value="221" /> <row ... /> <row id="1924" value="221" /> <row id="1925" value="3213" /> <.../> However the Schema supports an alternative format: <sparse start...
by William
Tue Aug 21, 2012 5:34 pm
Forum: XSLT and FOP
Topic: Identity transform, remove one filtered element, not working
Replies: 3
Views: 2172

Re: Identity transform, remove one filtered element, not working

Hi. Using saxon 6.5.5 and correctly formatted your XML what you've submitted works for me. <?xml version="1.0" encoding="UTF-8"?> <rootElement> <TitleWork> <roles> <Name-Role> <party href="/Name/key/2708" title="Smith, John"/> <principalRole>N</principalRole> <role href="/Code/key/ROLE//INE" title="...
by William
Tue Aug 21, 2012 3:54 pm
Forum: XSLT and FOP
Topic: Iterating elements multiple times.
Replies: 3
Views: 3560

Re: Iterating elements multiple times.

:D Thank you Adrian, very much appreciated and for a bit of background: The XML file contains data I feed in to a mathematical model so I need to extract data from it that meets my current criterion and create various data sets for putting into the model. However, each set of data I feed in needs 'a...
by William
Tue Aug 21, 2012 2:01 pm
Forum: XSLT and FOP
Topic: Iterating elements multiple times.
Replies: 3
Views: 3560

Re: Iterating elements multiple times.

Does the lack of response on this topic mean that the solution is so obvious that only an idiot (me) would miss it. If this is the case I would still like to know what it is. :oops: Or maybe does it mean that it is indeed a lot harder to actually put in to practice. Or, there's not enough informatio...
by William
Mon Aug 20, 2012 11:28 am
Forum: Other Issues
Topic: Perforce Support?
Replies: 2
Views: 1298

Re: Perforce Support?

OK, Adrian. Thanks for that at least I know.

--
William
by William
Sat Aug 18, 2012 2:13 pm
Forum: Other Issues
Topic: Perforce Support?
Replies: 2
Views: 1298

Perforce Support?

Hi,

I see from a search that this is a dated subject, is there or are there any plans to support Perforce?

It seems odd to me that support for such an established product is missing.

--
William
by William
Fri Aug 17, 2012 7:08 pm
Forum: XSLT and FOP
Topic: Iterating elements multiple times.
Replies: 3
Views: 3560

Iterating elements multiple times.

Hello again! In my transformer I need to iterate my XML x times, and apply various date changes and calculations on the extracted results. Using : <xsl:for-each select="for $offset in (0 to ($loopCount -1)) return $offset"> <xsl:call-template name="stuff"> <xsl:with-param name="offset" select="."/> ...
by William
Fri Aug 17, 2012 5:41 pm
Forum: XSLT and FOP
Topic: Using Saxon Extensions
Replies: 10
Views: 4049

Re: Using Saxon Extensions

Hi Adrian.

I've just taken time to give myself a "right good talking to" and promised myself not to embarrass me again.

One of those days I guess! Well that's my excuse.

--
William
by William
Fri Aug 17, 2012 5:05 pm
Forum: XSLT and FOP
Topic: Using Saxon Extensions
Replies: 10
Views: 4049

Re: Using Saxon Extensions

Hello. This is driving me :x . I've added 'debug' code to my BlockCalculator class and redirected all System output to a file. When my transformer starts I see a call to the two parameter constructor. However I never see messages from any other methods in the log file! As I have had no denial nor co...
by William
Thu Aug 16, 2012 5:58 pm
Forum: XSLT and FOP
Topic: Using Saxon Extensions
Replies: 10
Views: 4049

Re: Using Saxon Extensions

That warning is Saxon's way of telling you that the variable assignment will never be performed because there is nothing following it (that could use that variable). This of course makes perfect sense. BTW, why assign a variable if you won't use it in any way? Note that Saxon 9 won't initialize any...
by William
Thu Aug 16, 2012 4:52 pm
Forum: XSLT and FOP
Topic: Using Saxon Extensions
Replies: 10
Views: 4049

Re: Using Saxon Extensions

Hi, I believe you mean XSLT 2.0 and XSLT 1.0. XPath is a different concept that is used within XSLT and XQuery: http://www.w3schools.com/xpath/ I do indeed, caused by an error in the wetware. I see that you are declaring Xalan extensions (even for XSLT 2.0), but you say you are using Saxon-EE. Obvi...
by William
Thu Aug 16, 2012 1:10 pm
Forum: XSLT and FOP
Topic: Using Saxon Extensions
Replies: 10
Views: 4049

Re: Using Saxon Extensions

Hi Adrian, I hope this is what you mean / need. Declaration for XPath v2 <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xalan="http://xml.apache.org/xslt" xmlns:src="xalan://src.functions.BlockCalculator" exclude-resul...
by William
Wed Aug 15, 2012 7:08 pm
Forum: XSLT and FOP
Topic: Using Saxon Extensions
Replies: 10
Views: 4049

Re: Using Saxon Extensions

OK, I now have this at the stage where it can be executed but when I do I get oXygen telling me that an exception has occurred. Using the original template and processed with Saxon 6.5.5 I get my XML generated without error. However when I 'upgrade' to XPath 2 using a near duplicate of this template...
by William
Wed Aug 15, 2012 5:47 pm
Forum: XSLT and FOP
Topic: Using Saxon Extensions
Replies: 10
Views: 4049

Using Saxon Extensions

Hello, I have a jar file that contains a class I want to make use of within my XPath 2 transformer, but I'm confused on how to access it, there is nothing to be found in Michael Kay's 2004 "XPath 2.0" and what is available appears dated (v1). At present the jar file is on a web site but I can easily...
by William
Wed Aug 15, 2012 1:35 pm
Forum: XSLT and FOP
Topic: Transformer line breaks on attributes.
Replies: 1
Views: 1240

Transformer line breaks on attributes.

Hello Everyone, Using Saxon-EE 9.4.0.3 with this as an output element: <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> My transformed XML comes out looking like this: <row attr_1="aaa" attr_2="bbb" attr_3="ccc" attr_4="ddd" attr_5="eee" ... attr_x="xxx"/> Needless to say this ...
by William
Mon Aug 13, 2012 6:11 pm
Forum: XSLT and FOP
Topic: XPath 2.0 dynamic generation of CSV file
Replies: 2
Views: 1758

Re: XPath 2.0 dynamic generation of CSV file

Hi Adrian,

Thank you for that looks interesting. I'll give it a go and see what comes out in the wash.

--
William
by William
Thu Aug 09, 2012 3:55 pm
Forum: XSLT and FOP
Topic: XPath 2.0 dynamic generation of CSV file
Replies: 2
Views: 1758

XPath 2.0 dynamic generation of CSV file

Hello all, I have an XML file that is structured similar to this: <foo> <bar> <items> <item/> <item/> <.../> </items> <sets> <set/> <set/> <.../> </sets> <items> <item/> <item/> <.../> </items> <sets> <set/> <set/> <.../> </sets> </bar> </foo> I also have an XSLT that I use to extract the /foo/bar/i...
by William
Wed Aug 08, 2012 3:25 pm
Forum: Common Problems
Topic: Stopping an XQuery Transform
Replies: 10
Views: 2634

Re: Stopping an XQuery Transform

Hi, I am sorry, I overlooked your initial problem. The cause of the delayed stop is that the XQuery processor does not call the tracing callback often enough. Oxygen tries to stop the transformation at the first opportunity offered by the processor (that is when the processor will call the callback...
by William
Wed Aug 08, 2012 2:37 pm
Forum: Common Problems
Topic: Stopping an XQuery Transform
Replies: 10
Views: 2634

Re: Stopping an XQuery Transform

Hello, Thank you for the files. Some 7 minutes later it (oXygen) is still telling me "Transformation - is stopping ...". Now after (1994.6s) it tells me the transformation was successful! Do I detect a bug here? Surely this isn't correct as it's not what I would expect to happen. Your XQuery transf...