[oXygen-user] Warning from ODD processor

2023-03-09 Thread Lou Burnard
Not sure whose problem this is, but the built in ODD to RELAXNC processor (part 
of the oXygen TEI framework) at release 25 of oxygen editor still  seems to be 
using a component that needs updating.

 [xslt] Loading stylesheet /home/lou/Oxygen XML Editor 
25/frameworks/tei/xml/tei/stylesheet/profiles/default/relaxng/to.xsl
 [echo] TRANG generate RNC from RELAXNG files
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by 
org.apache.tools.ant.types.Permissions 
(file:/home/lou/Oxygen%20XML%20Editor%2025/tools/ant/lib/ant.jar)
WARNING: Please consider reporting this to the maintainers of 
org.apache.tools.ant.types.Permissions
WARNING: System::setSecurityManager will be removed in a future release
   [delete] Deleting: /home/lou/Public/odd4crit/out/odd4crit.rnc.rng

"terminally deprecated" sounds a lot worse than it probably is...

___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] Validation problem

2023-02-27 Thread Lou Burnard
Sadly, I dont think so. I suppressed the validation scenario,. and just ask for 
default validation, and again I get reports of schematron rules only

[ 14:19:22] - Schematron Error Scanner - start scanning 
file:/home/lou/Public/odd4crit/odd4crit_data.xml with schema: 
file:/home/lou/Public/odd4crit/out/odd4crit.rng
[ 14:19:22] - Found 7 problems


From: oXygen-user  on behalf of Oxygen XML 
Editor Support (Radu Coravu) 
Sent: Monday, February 27, 2023 2:15 PM
To: oxygen-user@oxygenxml.com 
Subject: Re: [oXygen-user] Validation problem


Hi Lou,


The problem seems to be the validation scenario named "odd4crit_data". You do 
not need a validation scenario if the XML file references directly the schemas. 
And probably in your validation scenario you mentioned only the Schematron 
validation as a stage and did not add a validation stage for the Relax NG based 
validation. So Oxygen does what your validation scenario says and skips Relax 
NG based validation,


Regards,

Radu

Radu Coravu
Oxygen XML Editor


On 2/27/23 16:03, Lou Burnard wrote:
Hi Radu
Thanks for the quick response.
When I apply the default validation scenario I see this

[ 13:58:35] - <<< Start scanning using validation scenario
  Scenario Name: odd4crit_data
  Scenario Storage Type: Global Level
  Default Scenario: No
[ 13:58:35] - << Validation Unit (1 of 1):
  File to validate URL: file:/home/lou/Public/odd4crit/odd4crit_data.xml
  Validation Unit Type: XML Document
  Validation Unit Engine: 
[ 13:58:37] - Schematron Error Scanner - start scanning 
file:/home/lou/Public/odd4crit/odd4crit_data.xml with schema: 
file:/home/lou/Public/odd4crit/out/odd4crit.rng
[ 13:58:37] - Found 7 problems
[ 13:58:37] - >>
[ 13:58:37] - End >>>

When I explicitly select the URL of my RNG file, I see this:

[ 14:01:10] - start scanning file:/home/lou/Public/odd4crit/odd4crit_data.xml 
with schema: file:/home/lou/Public/odd4crit/out/odd4crit.rng
[ 14:01:10] - Found 2 problems
[ 14:01:10] - Schematron Error Scanner - start scanning 
file:/home/lou/Public/odd4crit/odd4crit_data.xml with schema: 
file:/home/lou/Public/odd4crit/out/odd4crit.rng
[ 14:01:10] - Found 7 problems

(which is what I would prefer to see!)

From: oXygen-user 
<mailto:oxygen-user-boun...@oxygenxml.com> 
on behalf of Oxygen XML Editor Support (Radu Coravu) 
<mailto:supp...@oxygenxml.com>
Sent: Monday, February 27, 2023 1:46 PM
To: oxygen-user@oxygenxml.com<mailto:oxygen-user@oxygenxml.com> 
<mailto:oxygen-user@oxygenxml.com>
Subject: Re: [oXygen-user] Validation problem


Hi Lou,


Strange.


Let's say I have a stock TEI document "abc.xml" like this one below which has a 
similar reference to the TEI schemas (both as RNG and SCH):



http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng";<http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng>
   type="application/xml" 
schematypens="http://relaxng.org/ns/structure/1.0";<http://relaxng.org/ns/structure/1.0>?>
http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng";<http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng>
 type="application/xml"

schematypens="http://purl.oclc.org/dsdl/schematron";<http://purl.oclc.org/dsdl/schematron>?>
http://www.tei-c.org/ns/1.0";<http://www.tei-c.org/ns/1.0>>
  

  
  
  
 Some text here.
  
  


I go to the Oxygen main menu "Window->Show view" and show the "Information" 
view.

Then validate the XML document, in the Information view I get some information 
like this:


[ 15:42:54] - start scanning file:/.../abc.xml with schema: 
file:/../frameworks/tei/xml/tei/custom/schema/relaxng/tei_all.rng
[ 15:42:54] - Found 1 problem
[ 15:42:54] - Schematron Error Scanner - start scanning file:/../abc.xml with 
schema: file:/../tei/xml/tei/custom/schema/relaxng/tei_all.rng
[ 15:42:54] - No problems found

Do you get similar messages in the Oxygen Information view?


Regards,

Radu

Radu Coravu
Oxygen XML Editor

On 2/27/23 15:34, Lou Burnard wrote:
I have a RELAXNG schema which contains embedded schematron rules and a document 
which begins with two xml-model PIs like this:

http://relaxng.org/ns/structure/1.0";<http://relaxng.org/ns/structure/1.0>?>
http://purl.oclc.org/dsdl/schematron";<http://purl.oclc.org/dsdl/schematron>?>

When I validate this document using the default CTRL-SHIFT-V option, or using a 
predefined validation scenario, only Schematron validation errors are reported. 
When I validate by selecting "Validate with" and specifying the schema URL 
again, errors reported by jing also appear.

Is this the intended behaviour? Why?

I am using  XML Edit

Re: [oXygen-user] Validation problem

2023-02-27 Thread Lou Burnard
Hi Radu
Thanks for the quick response.
When I apply the default validation scenario I see this

[ 13:58:35] - <<< Start scanning using validation scenario
  Scenario Name: odd4crit_data
  Scenario Storage Type: Global Level
  Default Scenario: No
[ 13:58:35] - << Validation Unit (1 of 1):
  File to validate URL: file:/home/lou/Public/odd4crit/odd4crit_data.xml
  Validation Unit Type: XML Document
  Validation Unit Engine: 
[ 13:58:37] - Schematron Error Scanner - start scanning 
file:/home/lou/Public/odd4crit/odd4crit_data.xml with schema: 
file:/home/lou/Public/odd4crit/out/odd4crit.rng
[ 13:58:37] - Found 7 problems
[ 13:58:37] - >>
[ 13:58:37] - End >>>

When I explicitly select the URL of my RNG file, I see this:

[ 14:01:10] - start scanning file:/home/lou/Public/odd4crit/odd4crit_data.xml 
with schema: file:/home/lou/Public/odd4crit/out/odd4crit.rng
[ 14:01:10] - Found 2 problems
[ 14:01:10] - Schematron Error Scanner - start scanning 
file:/home/lou/Public/odd4crit/odd4crit_data.xml with schema: 
file:/home/lou/Public/odd4crit/out/odd4crit.rng
[ 14:01:10] - Found 7 problems

(which is what I would prefer to see!)

From: oXygen-user  on behalf of Oxygen XML 
Editor Support (Radu Coravu) 
Sent: Monday, February 27, 2023 1:46 PM
To: oxygen-user@oxygenxml.com 
Subject: Re: [oXygen-user] Validation problem


Hi Lou,


Strange.


Let's say I have a stock TEI document "abc.xml" like this one below which has a 
similar reference to the TEI schemas (both as RNG and SCH):



http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng";<http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng>
   type="application/xml" 
schematypens="http://relaxng.org/ns/structure/1.0";<http://relaxng.org/ns/structure/1.0>?>
http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng";<http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng>
 type="application/xml"

schematypens="http://purl.oclc.org/dsdl/schematron";<http://purl.oclc.org/dsdl/schematron>?>
http://www.tei-c.org/ns/1.0";<http://www.tei-c.org/ns/1.0>>
  

  
  
  
 Some text here.
  
  


I go to the Oxygen main menu "Window->Show view" and show the "Information" 
view.

Then validate the XML document, in the Information view I get some information 
like this:


[ 15:42:54] - start scanning file:/.../abc.xml with schema: 
file:/../frameworks/tei/xml/tei/custom/schema/relaxng/tei_all.rng
[ 15:42:54] - Found 1 problem
[ 15:42:54] - Schematron Error Scanner - start scanning file:/../abc.xml with 
schema: file:/../tei/xml/tei/custom/schema/relaxng/tei_all.rng
[ 15:42:54] - No problems found

Do you get similar messages in the Oxygen Information view?


Regards,

Radu

Radu Coravu
Oxygen XML Editor

On 2/27/23 15:34, Lou Burnard wrote:
I have a RELAXNG schema which contains embedded schematron rules and a document 
which begins with two xml-model PIs like this:

http://relaxng.org/ns/structure/1.0";<http://relaxng.org/ns/structure/1.0>?>
http://purl.oclc.org/dsdl/schematron";<http://purl.oclc.org/dsdl/schematron>?>

When I validate this document using the default CTRL-SHIFT-V option, or using a 
predefined validation scenario, only Schematron validation errors are reported. 
When I validate by selecting "Validate with" and specifying the schema URL 
again, errors reported by jing also appear.

Is this the intended behaviour? Why?

I am using  XML Editor 24.1, build 2022030807 on Ubuntu 20.04





___
oXygen-user mailing list
oXygen-user@oxygenxml.com<mailto:oXygen-user@oxygenxml.com>
https://www.oxygenxml.com/mailman/listinfo/oxygen-user




___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


[oXygen-user] Validation problem

2023-02-27 Thread Lou Burnard
I have a RELAXNG schema which contains embedded schematron rules and a document 
which begins with two xml-model PIs like this:

http://relaxng.org/ns/structure/1.0";?>
http://purl.oclc.org/dsdl/schematron";?>

When I validate this document using the default CTRL-SHIFT-V option, or using a 
predefined validation scenario, only Schematron validation errors are reported. 
When I validate by selecting "Validate with" and specifying the schema URL 
again, errors reported by jing also appear.

Is this the intended behaviour? Why?

I am using  XML Editor 24.1, build 2022030807 on Ubuntu 20.04


___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


[oXygen-user] cant run spell check on my raspberry

2021-08-31 Thread Lou Burnard
I have been having fun running oXygen (v 23.1) on my little Raspberry 
400. It takes a while to load from the USB stick, but runs smoothly 
(despite dire warnings at startup). However, I have hit a problem trying 
to use the spell checker, since you (obviously) don't ship a Raspbian 
binary of hunspell. The popup says "Error: could not load Hunspell. The 
error message was: Unknown OS/arch: linux/arm"


Now, back in 2012, when someone reported the exact same problem here 
(but with reference to Solaris), they were advised to set the "spell 
checking engine" to "Java spell checker", which looked promising. 
However, that option is no longer available so far as I can tell, 
certainly not where Adrian said it was!


Any suggestions?


___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


[oXygen-user] schematron validation in a batch file

2019-10-09 Thread Lou Burnard
One of the features of oXygen which I really love is the way it allows 
me to combine schema validation with RELAXNG and with schematron just by 
adding a couple of PIs to the top of my file. But this requires me to 
fire up oXygen and open up each file one by one which is not so 
convenient if I have 100 or more independent documents to validate. I 
would rather do this in a bash script, along with all the other 
pre-validation sanitation work. But


(a) only oXygen will take any notice of my PIs (obviously)

(b) none of the open source validators I've looked at seems to have a 
hook for including schematron validation


(c) oxyGen will do a batch validation of documents included in a project 
file, which is close to what I want, but still requires me to fire up 
oXygen, make the project file and click a couple of times, so not really 
a batch process


Maybe someone else has found a way round this, or could explain to me 
why it's just not possible. And how exactly does oXygen do this magic?



___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] using math extension in oxygen

2018-11-15 Thread Lou Burnard

On 15/11/2018 21:02, Jirka Kosek wrote:

On 15.11.2018 21:09, Lou Burnard wrote:

I have a stylesheet which currently uses an exslt math function. Within
oXygen this works fine in a transformation scenario, provided I choose
the saxon9pe processor. Using saxon9ee however, it fails. Why is that?
And how would I go about running this transformation outside oXygen? I
need to run it many times, preferably from the command line.

I bet it fails with free Saxon-HE as this version doesn't support all
extensions.

What version of XSLT language you are using? If you are using 1.0 then
you can use good old Saxon 6.5.5. If you are using 2.0 you can upgrade
to 3.0 which provides math functions natively, without need to use EXSLT
extensions:

https://www.w3.org/TR/xpath-functions-31/#trigonometry

Thanks (also to Gerrit!) for quick and helpful responses -- actually I 
only needed to get rid of a few xslt 2.0 specifics in my stylesheet, and 
then it runs fine with  xsltproc. Good to know that there is also the 
option of doing without exslt extensions though.




___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


[oXygen-user] using math extension in oxygen

2018-11-15 Thread Lou Burnard
I have a stylesheet which currently uses an exslt math function. Within 
oXygen this works fine in a transformation scenario, provided I choose 
the saxon9pe processor. Using saxon9ee however, it fails. Why is that? 
And how would I go about running this transformation outside oXygen? I 
need to run it many times, preferably from the command line.




___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] an xslt challenge

2018-11-05 Thread Lou Burnard
Thanks for v the quick reply james but doesnt your approach imply that the 
tokenisation into sentences has already been done? Im trying t o avoid a two 
pass solution as I expect to be doing this hundreds of times

reluctantly using Outlook for Android<https://aka.ms/ghei36>


From: James Cummings 
Sent: Monday, November 5, 2018 1:10:02 PM
To: Lou Burnard
Cc: oxygen-user@oxygenxml.com
Subject: Re: [oXygen-user] an xslt challenge

Hi Lou,

Would it make sense to use xsl:for-each-group to group the sentences into  
units to make this easier? Then I'd probably recursively call a template or 
function passing the current collection of  units as a variable item* value, 
testing if its tokenised number is above or below $maxWords.

Not got time to write that out as a solution atm, and I'm sure it can be done 
without the recursivity as well, but that is the approach that would have 
occurred to me at least.

-James


On Mon, 5 Nov 2018 at 12:03, Lou Burnard 
mailto:lou.burn...@retired.ox.ac.uk>> wrote:

I hope I am not abusing this list in asking occasionally for advice on the best 
way to hack something in xslt.

Today's problem is to output only the first x sentences (string terminated by a 
full stop) of a paragraph such that the total number of words (space delimited 
strings)  is less than some limit (call it $maxWords) Since the sentences are 
of variable length, obviously I don't know what x is.

Here's where I got to so far:












  





  

   


But this is not valid because preceding-sibling:: wants a node() not a string 
(even though "text()" *is* a node imho).

Am I going about this entirely the wrong way?




___
oXygen-user mailing list
oXygen-user@oxygenxml.com<mailto:oXygen-user@oxygenxml.com>
https://www.oxygenxml.com/mailman/listinfo/oxygen-user
___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


[oXygen-user] an xslt challenge

2018-11-05 Thread Lou Burnard
I hope I am not abusing this list in asking occasionally for advice on 
the best way to hack something in xslt.


Today's problem is to output only the first x sentences (string 
terminated by a full stop) of a paragraph such that the total number of 
words (space delimited strings)  is less than some limit (call it 
$maxWords) Since the sentences are of variable length, obviously I don't 
know what x is.


Here's where I got to so far:


    
    
    
    
    
    
    
    
    select="string-length(translate(normalize-space

    (preceding-sibling::text()), ' ', '')) + 1"/>
    
  

            
    
    

  

   
    

But this is not valid because preceding-sibling:: wants a node() not a 
string (even though "text()" *is* a node imho).


Am I going about this entirely the wrong way?




___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] transforming LOTS of files with saxon

2018-03-12 Thread Lou Burnard

Now that *is* really cool. Many thanks (again) Peter.

On 12/03/18 13:54, Peter Stadler wrote:

I think what’s expensive here is that you spin up a JVM for every file.
You can prevent this by passing a directory to the Saxon CLI as input parameter 
which should be way faster. (You’d need to concat the results in a second step, 
then)

Best
Peter


Am 12.03.2018 um 13:54 schrieb Lou Burnard :

I want to run a simple XSLT script against each of about 50,000 small RDF files, sending the 
output to a single file. I can do it at the command line, but I'd like it to complete within my 
lifetime, or preferably before lunch. Is there a better way than saying "for f in *.rdf; 
do saxon $f mystylesheet.xsl >> output.xml; done" ?

___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user

--
Peter Stadler
Carl-Maria-von-Weber-Gesamtausgabe
Arbeitsstelle Detmold
Hornsche Str. 39
D-32756 Detmold
Tel. +49 5231 975-676
Fax: +49 5231 975-668
stadler at weber-gesamtausgabe.de
www.weber-gesamtausgabe.de



___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] transforming LOTS of files with saxon

2018-03-12 Thread Lou Burnard

Hi Radu

Well not quite, since the >> appends each output file to the same 
location, but that doesn't speed anything up.


Thanks for the tip about using the collection function though! Will give 
it a try. After lunch.


Lou


On 12/03/18 13:47, Oxygen XML Editor Support (Radu Coravu) wrote:

Hi Lou,

Each XSLT transformation scenario will output to its own file 
location. So you would still need to merge all those output files.


How about if your XSLT uses the "collection" function to load all XML 
documents in a certain folder and then use those nodes to produce the 
output?

Something like James Cummings does here:

https://blogs.it.ox.ac.uk/jamesc/2009/02/10/xslt2-collection-with-dynamic-collections-from-directory-listings/ 



Regards,
Radu

Radu Coravu
 XML Editor
http://www.oxygenxml.com

On 3/12/2018 2:54 PM, Lou Burnard wrote:

I want to run a simple XSLT script against each of about 50,000 small
RDF files, sending the output to a single file. I can do it at the
command line, but I'd like it to complete within my lifetime, or
preferably before lunch. Is there a better way than saying "for f in
*.rdf; do saxon $f mystylesheet.xsl >> output.xml; done" ?

___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user

___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user



___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


[oXygen-user] transforming LOTS of files with saxon

2018-03-12 Thread Lou Burnard
I want to run a simple XSLT script against each of about 50,000 small 
RDF files, sending the output to a single file. I can do it at the 
command line, but I'd like it to complete within my lifetime, or 
preferably before lunch. Is there a better way than saying "for f in 
*.rdf; do saxon $f mystylesheet.xsl >> output.xml; done" ?


___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] xslt puzzle

2018-03-06 Thread Lou Burnard

Ha!

Thanks Peter! It's totally obvious when a fresh pair of eyes looks at it!

I'll go back to banging the rocks together now ...

Lou

On 06/03/18 14:36, Peter Stadler wrote:

Hi Lou,

I think you’ll need to move the   (which you want to create) outside the inner loop 
(
Am 06.03.2018 um 15:20 schrieb Lou Burnard :

I take the liberty of exposing my ignorance of how to use the cool grouping 
features of xslt on the list, in the hope that someone will take pity on me and 
explain what's going on here.

My input file (in the HTML namespace) contains chunks like this:

Waarde Meryan!

‘In aanmerking genomen onze gewoonlijk niet heel drukke (!) correspondentie, 
...  Dus, vous voilà prévenu, le pire est fait.

‘Weet dan ...  voet voortleven en ten slotte totaal geruïneerd! Hij, zeer plotseling gestorven gij begrijpt mij wel!




which I want to transform  (obviously) to something like this

Waarde Meryan!

‘In aanmerking genomen onze gewoonlijk niet heel drukke (!) correspondentie, 
...  Dus, vous voilà prévenu, le pire est fait.


‘Weet dan ...  voet voortleven en ten slotte totaal geruïneerd! Hij, zeer plotseling gestorven gij begrijpt mij wel!




My stylesheet has a template for div[@class] which contains the following:





















and another for span which handles the conversion to 

... and this NEARLY works. But not quite. It generates


Waarde Meryan! 

‘In aanmerking genomen onze gewoonlijk niet heel drukke (!) correspondentie, 
... Dus, vous voilà prévenu, le pire est fait.
>

‘Weet dan ... voet voortleven en ten slotte totaal geruïneerd! Hij, 
zeer
 plotseling gestorven gij begrijpt mij wel!



i.e. it looks as if the current-group starts a new sequence for each h:div child, 
rather than for each . So I am misunderstanding something fairly 
fundamental about how this grouping mechanism works.

Any and all advice gratefully received!

Lou



___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user

--
Peter Stadler
Carl-Maria-von-Weber-Gesamtausgabe
Arbeitsstelle Detmold
Hornsche Str. 39
D-32756 Detmold
Tel. +49 5231 975-676
Fax: +49 5231 975-668
stadler at weber-gesamtausgabe.de
www.weber-gesamtausgabe.de



___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


[oXygen-user] xslt puzzle

2018-03-06 Thread Lou Burnard
I take the liberty of exposing my ignorance of how to use the cool 
grouping features of xslt on the list, in the hope that someone will 
take pity on me and explain what's going on here.


My input file (in the HTML namespace) contains chunks like this:

Waarde Meryan!

‘In aanmerking genomen onze gewoonlijk niet heel drukke (!) correspondentie, 
...  Dus, vous voilà prévenu, le pire est fait.

‘Weet dan ...  voet voortleven en ten slotte totaal geruïneerd! Hij, zeer plotseling gestorven gij begrijpt mij wel!



which I want to transform  (obviously) to something like this

Waarde Meryan!

‘In aanmerking genomen onze gewoonlijk niet heel drukke (!) correspondentie, 
...  Dus, vous voilà prévenu, le pire est fait.


‘Weet dan ...  voet voortleven en ten slotte totaal geruïneerd! Hij, zeer plotseling gestorven gij begrijpt mij wel!




My stylesheet has a template for div[@class] which contains the following:


||
||
||
||
||
||
||
||
||
||
||
||
||
||
||
||
||
||

and another for span which handles the conversion to 

... and this NEARLY works. But not quite. It generates

|||
||Waarde Meryan! ||

||‘In aanmerking genomen onze gewoonlijk niet heel drukke (!) 
correspondentie, ... Dus, vous voilà prévenu, le pire est fait.||

||>||

||‘Weet dan ... voet voortleven en ten slotte totaal geruïneerd! Hij, ||
||zeer||
plotseling gestorven gij begrijpt mij wel! ||

|||

i.e. it looks as if the current-group starts a new sequence for each 
h:div child, rather than for each . So I am misunderstanding 
something fairly fundamental about how this grouping mechanism works.


Any and all advice gratefully received!

Lou



___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] Spurious /> in text mode

2017-11-13 Thread Lou Burnard
I forgot to add: if you want to "open" something like  so that you 
can add content, just delete the / and oXygen will turn it back to 
, with the cursor in the right place for you to do so.


On 13/11/17 14:22, Lou Burnard wrote:
That's what I'd expect to happen! By typing the > there you make it 
into a start tag, for which oxygen then dutifully supplies an end tag. 
Not a bug, in my opinion.


Sent from my Huawei Mobile

 Original Message 
Subject: Re: [oXygen-user] Spurious /> in text mode
From: "Kalvesmaki, Joel"
To: "Oxygen XML Editor Support (Radu Coravu) " ,oxygen-user@oxygenxml.com
CC:

I too have experienced this bug in the Text mode, over various oXygen 
releases, and just learned to live with it, but I’m glad someone else 
has raised the question. It happens when you start with an empty, 
collapsed element, position your cursor before the / then try to type 
a >. The problem doesn’t occur if the element has any attributes. I 
haven’t adjusted the content completion options.


Best wishes,

jk

--

Joel Kalvesmaki

Managing Editor in Byzantine Studies

Dumbarton Oaks

202 339 6435

*From: *oXygen-user  on behalf of 
"Oxygen XML Editor Support (Radu Coravu)" 

*Date: *Monday, November 13, 2017 at 6:49 AM
*To: *"oxygen-user@oxygenxml.com" 
*Subject: *Re: [oXygen-user] Spurious /> in text mode

Hi Bernhard,

Do you have this problem when editing XML in the Text editing mode or
when editing XQuery with XML tags inside it?
Did you make any changes to the Oxygen Preferences->"Editor / Content
Completion" page defaults?

Regards,
Radu

Radu Coravu
 XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 11/13/2017 12:53 PM, Bernhard Kleine wrote:
> Hi,
>
> in text mode of Oxygen editor when trying to add to e.g
>
>  I type a ">" and end up with
>
> />. There is alway this spurious /> at the end of the
> line. Is there a reason for it? The same is true for 
>
> and any other tag so far I have tried.
>
> I think this is a bug.
>
> Regards Bernhard
>
>
>
> ___
> oXygen-user mailing list
> oXygen-user@oxygenxml.com
> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
>
___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user



*Disclaimer*

The information contained in this communication from the sender is 
confidential. It is intended solely for use by the recipient and 
others authorized to receive it. If you are not the recipient, you are 
hereby notified that any disclosure, copying, distribution or taking 
action in relation of the contents of this information is strictly 
prohibited and may be unlawful.


This email has been scanned for viruses and malware, and may have been 
automatically archived by *Mimecast Ltd*, an innovator in Software as 
a Service (SaaS) for business. Providing a *safer* and *more useful* 
place for your human generated data. Specializing in; Security, 
archiving and compliance. To find out more Click Here 
<http://www.mimecast.com/products/>.




___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user



___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] Spurious /> in text mode

2017-11-13 Thread Lou Burnard
That's what I'd expect to happen! By typing the > there you make it into a 
start tag, for which oxygen then dutifully supplies an end tag. Not a bug, in 
my opinion.

Sent from my Huawei Mobile

 Original Message 
Subject: Re: [oXygen-user] Spurious /> in text mode
From: "Kalvesmaki, Joel"
To: "Oxygen XML Editor Support (Radu Coravu) " ,oxygen-user@oxygenxml.com
CC:

I too have experienced this bug in the Text mode, over various oXygen releases, 
and just learned to live with it, but I’m glad someone else has raised the 
question. It happens when you start with an empty, collapsed element, position 
your cursor before the / then try to type a >. The problem doesn’t occur if the 
element has any attributes. I haven’t adjusted the content completion options.

Best wishes,

jk
--
Joel Kalvesmaki
Managing Editor in Byzantine Studies
Dumbarton Oaks
202 339 6435


From: oXygen-user  on behalf of "Oxygen XML 
Editor Support (Radu Coravu)" 
Date: Monday, November 13, 2017 at 6:49 AM
To: "oxygen-user@oxygenxml.com" 
Subject: Re: [oXygen-user] Spurious /> in text mode

Hi Bernhard,

Do you have this problem when editing XML in the Text editing mode or
when editing XQuery with XML tags inside it?
Did you make any changes to the Oxygen Preferences->"Editor / Content
Completion" page defaults?

Regards,
Radu

Radu Coravu
 XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 11/13/2017 12:53 PM, Bernhard Kleine wrote:
> Hi,
>
> in text mode of Oxygen editor when trying to add to e.g
>
>  I type a ">" and end up with
>
> />. There is alway this spurious /> at the end of the
> line. Is there a reason for it? The same is true for 
>
> and any other tag so far I have tried.
>
> I think this is a bug.
>
> Regards Bernhard
>
>
>
> ___
> oXygen-user mailing list
> oXygen-user@oxygenxml.com
> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
>
___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user




Disclaimer

The information contained in this communication from the sender is 
confidential. It is intended solely for use by the recipient and others 
authorized to receive it. If you are not the recipient, you are hereby notified 
that any disclosure, copying, distribution or taking action in relation of the 
contents of this information is strictly prohibited and may be unlawful.

This email has been scanned for viruses and malware, and may have been 
automatically archived by Mimecast Ltd, an innovator in Software as a Service 
(SaaS) for business. Providing a safer and more useful place for your human 
generated data. Specializing in; Security, archiving and compliance. To find 
out more Click Here.
___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] Checking whether a file exists in XSLT

2017-01-13 Thread Lou Burnard
Many thanks for taking the time to check! Your reassuring reply made me 
go and check how I was running the code, and yes, of course, I was 
running it in a context where that "base-uri(.)" was bound to cause 
confusion.


Thanks again!


On 13/01/17 07:49, Dr. Patrik Stellmann wrote:

I just tested you code (also with oXygen 18.1 but with minimal modifications on 
a dita map) and it worked fine:


http://www.w3.org/1999/XSL/Transform";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
exclude-result-prefixes="xs"
version="3.0">
















  





I'd recommend you to create a similar minimal sample to make sure the problem 
lies really within this piece of code.

Patrik


--
Systemarchitektur & IT-Projekte
Tel: +49 40 33449-1142
Fax: +49 40 33449-1400
E-Mail: mailto:patrik.stellm...@gdv-dl.de

-Ursprüngliche Nachricht-
Von: oXygen-user [mailto:oxygen-user-boun...@oxygenxml.com] Im Auftrag von Lou 
Burnard
Gesendet: Donnerstag, 12. Januar 2017 19:59
An: oxygen-user@oxygenxml.com
Betreff: [oXygen-user] Checking whether a file exists in XSLT

I need to write a stylesheet which checks the value of an attribute to see if 
it is the name of an existing file. You can't do it directly in XSLT of course, 
so I am following the advice of Mike Kay
(https://www.oxygenxml.com/archives/xsl-list/200506/msg00400.html) and trying 
to do it with a java extension in an XSLT2 stylesheet. Here's the relevant 
template, which I run with saxon EE within oXygen 18.1


  
  
  
  
  
  
  

  
  
  
  
  

  

The messages produced tell me that the filenames are being resolved correctly 
(they are all relative URLs like this
../../something/foo/foo.jpg) but the test always returns true, whether the file 
concerned exists or not. Am I missing something obvious? Or not obvious? This 
has been driving me nuts all day...



___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user

GDV Dienstleistungs-GmbH & Co. KG
Glockengießerwall 1
D-20095 Hamburg
www.gdv-dl.de

Sitz und Registergericht: Hamburg
HRA 93 894
USt.-IdNr : DE 205183123

Komplementärin:
GDV Beteiligungsgesellschaft mbH
Sitz und Registergericht: Hamburg
HRB 71 153

Geschäftsführer:
Dr. Jens Bartenwerfer
Michael Bathke

--
Diese E-Mail und alle Anhänge enthalten vertrauliche und/oder rechtlich 
geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese 
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte 
Weitergabe der E-Mail ist nicht gestattet.

This e-mail and any attached files may contain confidential and/or privileged 
information. If you are not the intended recipient (or have received this 
e-mail in error) please notify the sender immediately and destroy this e-mail. 
Any unauthorised copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.
___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user



___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


[oXygen-user] Checking whether a file exists in XSLT

2017-01-12 Thread Lou Burnard
I need to write a stylesheet which checks the value of an attribute to 
see if it is the name of an existing file. You can't do it directly in 
XSLT of course, so I am following the advice of Mike Kay 
(https://www.oxygenxml.com/archives/xsl-list/200506/msg00400.html) and 
trying to do it with a java extension in an XSLT2 stylesheet. Here's the 
relevant template, which I run with saxon EE within oXygen 18.1




















The messages produced tell me that the filenames are being resolved 
correctly (they are all relative URLs like this 
../../something/foo/foo.jpg) but the test always returns true, whether 
the file concerned exists or not. Am I missing something obvious? Or not 
obvious? This has been driving me nuts all day...




___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] editor font

2016-08-03 Thread Lou Burnard

Hi Radu

Thanks for the informative (and rapid)  response!

L


On 03/08/16 11:52, Oxygen XML Editor Support (Radu Coravu) wrote:

Hi Lou,

An operating system has both physical fonts and logical fonts. A 
logical font can map various parts of its range to various other 
physical fonts:



https://docs.oracle.com/javase/tutorial/2d/text/fonts.html


Oxygen is a Java application and it has access to an array of fonts, 
some logical (like "Monospaced" and "Serif") and other physical.
So "Monospaced" probably uses a variety of physical fonts for various 
character range intervals. But as an application running on top of 
this abstraction we do not really know how the operating system 
combines ranges for a monospaced font.


Regards,
Radu

Radu Coravu
  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 8/3/2016 1:33 PM, Lou Burnard wrote:

When I look at the dialogue for setting fonts, it says that by default i
am using a font family called "Monospaced" for the editor. How can I
find out which actual font is being used? (I'd like to know because it
seems to have many characters which other fonts don't, notably OCS
characters). Or is it a font specific to oXygen?



___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user

___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user



___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


[oXygen-user] editor font

2016-08-03 Thread Lou Burnard
When I look at the dialogue for setting fonts, it says that by default i 
am using a font family called "Monospaced" for the editor. How can I 
find out which actual font is being used? (I'd like to know because it 
seems to have many characters which other fonts don't, notably OCS 
characters). Or is it a font specific to oXygen?




___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] Zoom by mouse scrolling in v18

2016-05-11 Thread Lou Burnard
For those of us (not a few) who use laptops -- which don't have a 
numeric keypad -- and don't run either windows or mac os -- this feature 
was REALLY USEFUL. I spend a lot of time demonstrating how cool oxyGen 
is to people, and being able to zoom in and out of the editor display is 
really important!




On 11/05/16 08:45, oXygen XML Editor Support - Alex Jitianu wrote:

Hello,

We removed the zoom by mouse scrolling because it had some issues when 
used on Windows laptops or on Macs. On these systems the JVM 
incorrectly reported a "zoom"-triggering event when you pressed 
"CTRL"/"META" *after* you've finished a scroll. The result was a very 
annoying and unexpected zoom. We though that because there is also the 
CTRL + "+"  shortcut, people wont miss it too much. I guess we were 
wrong, weren't we ? :)


In the next 18 build we'll publish an option so that you'll be able to 
enable or disable this support as you please.


Best regards,
Alex


___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user