[oXygen-user] Need help with a Schematron rule

2024-02-14 Thread Frank Dissinger

Hi all,


I want to write a Schematron rule which checks whether a keyref'ed 
element contains a blank character.



WRONG:    

CORRECT: 


I adapted another rule and tried the following, but it does not work as 
expected.

In addition, it should apply to any keyref'ed element, not only to .


  xmlns:sch="http://purl.oclc.org/dsdl/schematron";>

    
  No blank allowed 
inside keyref'ed ph elements

    
  


Any help would be greatly appreciated.


Regards,

Frank

--

*Frank Dissinger*

Documentation Manager



*CGS ORIS GmbH*

*Email *frank.dissin...@cgs-oris.com | *Web* www.cgs-oris.com 



*Address* Kettelerstr. 24 | D-63512 Hainburg | Germany

*Phone* +49 6182 9626-27 | *Fax* +49 6182 9626-99

*Commercial register* Offenbach, HRB no. 21495

*Managing directors* Bernd Rückert, Christoph Thommessen


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


[oXygen-user] Need help with a Schematron rule

2024-02-14 Thread Frank Dissinger

Hm,


The rule incorrectly outputs the warning when there is no blank in the 
element, even with the change you're proposing.



All DITA elements seem to have a class attribute. The other Schematron 
rules I am using are all written with class attributes and they work.



I don't know if the following has to do with this issue. Since today I 
am always getting the following error when I save a Schematron rule. I 
then click "Save anyway".


   access denied ("java.security.AllPermission" ""
   "")

I don't know what is causing this.





Am 14.02.2024 um 10:02 schrieb David Maus:

Moin!

On Wed, 14 Feb 2024 09:48:18 +0100,
Frank Dissinger wrote:

[1  ]
[1.1  ]
[1.2  ]
Hi all,

I want to write a Schematron rule which checks whether a keyref'ed element 
contains a blank character.

WRONG:

CORRECT: 

I adapted another rule and tried the following, but it does not work as 
expected.
In addition, it should apply to any keyref'ed element, not only to .

   http://purl.oclc.org/dsdl/schematron";>
 
   No blank allowed inside 
keyref'ed ph elements
 
   

Your rule matches all elements with @keyref and with an @class
attribute that contains 'ph'.

The two examples do not have a @class attribute, thus the rule doesn't
fire.

Maybe rewrite the rule as

sch:rule context="*[@keyref]"?

HTH,
   -- David




Any help would be greatly appreciated.

Regards,

Frank

--

Frank Dissinger

Documentation Manager



CGS ORIS GmbH

emailfrank.dissin...@cgs-oris.com  | Webwww.cgs-oris.com

Address Kettelerstr. 24 | D-63512 Hainburg | Germany

Phone +49 6182 9626-27 | Fax +49 6182 9626-99

Commercial register Offenbach, HRB no. 21495

Managing directors Bernd Rückert, Christoph Thommessen

--

*Frank Dissinger*

Documentation Manager



*CGS ORIS GmbH*

*Email *frank.dissin...@cgs-oris.com | *Web* www.cgs-oris.com 



*Address* Kettelerstr. 24 | D-63512 Hainburg | Germany

*Phone* +49 6182 9626-27 | *Fax* +49 6182 9626-99

*Commercial register* Offenbach, HRB no. 21495

*Managing directors* Bernd Rückert, Christoph Thommessen


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


Re: [oXygen-user] Need help with a Schematron rule

2024-02-14 Thread Franz-Josef Knelangen
Hi Frank,

the provided code works: added it to my rules.sch and removed the ph to catch 
all keyref‘ed elements:


  

  No blanks allowed inside 
keyref'ed elements

  

Now it reports correctly – the yellow elements have red underlines in Oxy – 
they don’t come over with the clipboard:




Test Schematron

 

 





And only these 2 in the “Problems” pod:

No blanks allowed inside keyref'ed elements
No blanks allowed inside keyref'ed elements

Must be something else in your configuration…

Greetings,
Franz-Josef

Franz-Josef Knelangen
Leiter Dokumentation


Main:   +49 7634 5612-0

Facebook | 
Xing | 
LinkedIn | 
YouTube

[cid:image002_01fef2d4-1f7d-4ea5-9727-748ef31e8852.png]

AKG Software Consulting GmbH
Uhlandstr. 12
D-79423 Heitersheim
www.akgsoftware.de

Geschäftsführer: Dipl.-Ing. Artur K. Günther, Dipl.-Ing. Arno Brüggemann, 
Dipl.-Ing. (FH) Bernhard Feser, Dipl.-Ing. Jens Günther
Sitz der Gesellschaft: Heitersheim, HRB 310383 (Amtsgericht Freiburg i. Br.)




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


Re: [oXygen-user] Need help with a Schematron rule

2024-02-14 Thread David Maus
Moin!

On Wed, 14 Feb 2024 09:48:18 +0100,
Frank Dissinger wrote:
> 
> [1  ]
> [1.1  ]
> [1.2  ]
> Hi all,
> 
> I want to write a Schematron rule which checks whether a keyref'ed element 
> contains a blank character.
> 
> WRONG:
> 
> CORRECT: 
> 
> I adapted another rule and tried the following, but it does not work as 
> expected.
> In addition, it should apply to any keyref'ed element, not only to .
> 
>xmlns:sch="http://purl.oclc.org/dsdl/schematron";>
> 
>   No blank allowed inside 
> keyref'ed ph elements
> 
>   

Your rule matches all elements with @keyref and with an @class
attribute that contains 'ph'.

The two examples do not have a @class attribute, thus the rule doesn't
fire.

Maybe rewrite the rule as

sch:rule context="*[@keyref]"?

HTH,
  -- David



> 
> Any help would be greatly appreciated.
> 
> Regards,
> 
> Frank
> 
> -- 
> 
> Frank Dissinger
> 
> Documentation Manager
> 
> 
> 
> CGS ORIS GmbH
> 
> Email frank.dissin...@cgs-oris.com | Web www.cgs-oris.com
> 
> Address Kettelerstr. 24 | D-63512 Hainburg | Germany
> 
> Phone +49 6182 9626-27 | Fax +49 6182 9626-99
> 
> Commercial register Offenbach, HRB no. 21495
> 
> Managing directors Bernd Rückert, Christoph Thommessen
> 
> https://www.cgs-oris.com/Signatur.png
> [2  ]
> ___
> oXygen-user mailing list
> oXygen-user@oxygenxml.com
> https://www.oxygenxml.com/mailman/listinfo/oxygen-user

-- 
David Maus
Hamburg, Germany

web: https://dmaus.name
fediverse: @dm...@dmaus.name
___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] [OXYGEN-12915] Customizing Batch Document conversion from Word to DITA

2024-02-14 Thread Oxygen XML Editor Support (Cosmin Duna)

Hi,
I'm sorry, but currently, the add-on does not support setting an 
additional XSLT processing file. We do have an internal issue logged for 
this and I've added your feedback to it to help prioritize it.
As you suggested, the only workaround at the moment is to post-process 
the resulting DITA documents using a custom refactoring operation, like 
in this example: 
https://blog.oxygenxml.com/topics/migrating_word_to_dita_bdc/frequently_asked_questions.html#word-to-dita-frequently-asked-questions__how-to-configure-mapping-when-wanted-element-doest-exist-in-html


Regarding the issue with the image being outside the fig element, I was 
unable to replicate this problem. The resulting DITA document should 
look like this:

    
    Figure Flower
    
    A white flower with yellow center.
    
    
Could you please provide us with a sample where this problem occurs?

Best regards,
Cosmin

--
Cosmin Duna
Oxygen XML Editor

On 12-Feb-24 4:14 PM, Jirka Kosek wrote:

Hi,

we are using Batch Document converting Add-on on one project to 
convert Word files into DITA content. I'm wondering if there is any 
way how to customize conversion process in a more complex way than 
just by mapping Word styles into HTML elements that are later mapped 
into DITA (as described at 
https://www.oxygenxml.com/doc/versions/26.0/ug-editor/topics/batch-converter-addon.html).


Examples of things we would like to customize:

* Grouping of generated DITA elements. For example Word figure with 
caption is by default converted to two paragraphs -- one with image 
and the second with caption. We can map Caption style to "figure > 
figcaption" but this will generate DITA figure only with title, image 
itself will be in the previous paragraph. If we could run simple XSLT 
on the result it should be possible to automatically fix such output 
to create valid and more semantically rich DITA.


* We need to create DITA Bookmap not plain DITA Map from one Word 
file. So having ability to run custom XSLT that woudl transform map 
into bookmap would help us a lot.


Of course we can implement this as an additional post-processing step 
but if there is some existing integration point I've missed it would 
be much easier for users just to invoke conversion from the menu.


Many thanks in advance,

    Jirka


___
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] Need help with a Schematron rule

2024-02-14 Thread Frank Dissinger

Hi Franz-Josef,


Thank you very much for your help. Your code indeed does work! I don't 
know what made it fail previously...



Any idea about this error message which keeps popping up at the bottom 
of the window when I save a Schematron rule file?


   access denied ("java.security.AllPermission" ""
   "")

I can save the *.sch file despite this message, but it's annoying 
because it requires an additional click on the "Save anyway" button.



Regards,


Frank





Am 14.02.2024 um 13:05 schrieb Franz-Josef Knelangen:


Hi Frank,

the provided code works: added it to my rules.sch and removed the ph 
to catch all keyref‘ed elements:





No blanks allowed 
inside keyref'ed elements




Now it reports correctly – the yellow elements have red underlines in 
Oxy – they don’t come over with the clipboard:





Test Schematron









And only these 2 in the “Problems” pod:

No blanks allowed inside keyref'ed elements

No blanks allowed inside keyref'ed elements

Must be something else in your configuration…

Greetings,

Franz-Josef

*
Franz-Josef Knelangen**
*Leiter Dokumentation

Main:   +49 7634 5612-0

Facebook | Xing 
| LinkedIn 
| YouTube 



AKG Software Consulting GmbH

*AKG Software Consulting GmbH*
Uhlandstr. 12
D-79423 Heitersheim
www.akgsoftware.de 

Geschäftsführer: Dipl.-Ing. Artur K. Günther, Dipl.-Ing. Arno 
Brüggemann, Dipl.-Ing. (FH) Bernhard Feser, Dipl.-Ing. Jens Günther
Sitz der Gesellschaft: Heitersheim, HRB 310383 (Amtsgericht Freiburg 
i. Br.)**



--

*Frank Dissinger*

Documentation Manager



*CGS ORIS GmbH*

*Email *frank.dissin...@cgs-oris.com | *Web* www.cgs-oris.com 



*Address* Kettelerstr. 24 | D-63512 Hainburg | Germany

*Phone* +49 6182 9626-27 | *Fax* +49 6182 9626-99

*Commercial register* Offenbach, HRB no. 21495

*Managing directors* Bernd Rückert, Christoph Thommessen


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


Re: [oXygen-user] [OXYGEN-12987] Need help with a Schematron rule

2024-02-14 Thread Oxygen XML Editor Support (Radu Coravu)

Hi Frank,


About the "access denied" problem, we seem to have fixed it in an Oxygen 
26.1 minor bug fix release:


https://www.oxygenxml.com/build_history.html?build_id=2024012406

*Security/Schematron:* Fixed an issue regarding the validation of 
Schematron documents when such files were created or saved in a 
location considered not safe.
So maybe you can re-download and re-install Oxygen 26.1. In the Oxygen 
main menu Help->About dialog besides the version you can also find the 
build ID information as from time to time we release newer builds of the 
same version to fix more severe problems.



Regards,

Radu

Radu Coravu
Oxygen XML Editor


On 2/14/24 17:00, Frank Dissinger wrote:


Hi Franz-Josef,


Thank you very much for your help. Your code indeed does work! I don't 
know what made it fail previously...



Any idea about this error message which keeps popping up at the bottom 
of the window when I save a Schematron rule file?


access denied ("java.security.AllPermission" ""
"")

I can save the *.sch file despite this message, but it's annoying 
because it requires an additional click on the "Save anyway" button.



Regards,


Frank





Am 14.02.2024 um 13:05 schrieb Franz-Josef Knelangen:


Hi Frank,

the provided code works: added it to my rules.sch and removed the ph 
to catch all keyref‘ed elements:





No blanks allowed 
inside keyref'ed elements




Now it reports correctly – the yellow elements have red underlines in 
Oxy – they don’t come over with the clipboard:





Test Schematron









And only these 2 in the “Problems” pod:

No blanks allowed inside keyref'ed elements

No blanks allowed inside keyref'ed elements

Must be something else in your configuration…

Greetings,

Franz-Josef

*
Franz-Josef Knelangen**
*Leiter Dokumentation

Main:   +49 7634 5612-0

Facebook | Xing 
| LinkedIn 
| YouTube 



AKG Software Consulting GmbH

*AKG Software Consulting GmbH*
Uhlandstr. 12
D-79423 Heitersheim
www.akgsoftware.de 

Geschäftsführer: Dipl.-Ing. Artur K. Günther, Dipl.-Ing. Arno 
Brüggemann, Dipl.-Ing. (FH) Bernhard Feser, Dipl.-Ing. Jens Günther
Sitz der Gesellschaft: Heitersheim, HRB 310383 (Amtsgericht Freiburg 
i. Br.)**



--

*Frank Dissinger*

Documentation Manager



*CGS ORIS GmbH*

*Email *frank.dissin...@cgs-oris.com | *Web* www.cgs-oris.com 



*Address* Kettelerstr. 24 | D-63512 Hainburg | Germany

*Phone* +49 6182 9626-27 | *Fax* +49 6182 9626-99

*Commercial register* Offenbach, HRB no. 21495

*Managing directors* Bernd Rückert, Christoph Thommessen


https://www.cgs-oris.com/Signatur.png 

___
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