Search found 40 matches

by david_himself
Mon May 30, 2022 11:46 am
Forum: Other Issues
Topic: <egXML> in ODD to XHTML
Replies: 2
Views: 673

Re: <egXML> in ODD to XHTML

Many thanks, Alex. In Document Type Association, for TEI P5 (and also TEI ODD) I have now selected the ones with external storage rather than the add-ons. (I had wanted to try precisely that but had forgotten how to get to the dropdown with all those options! :oops: ) Problem solved for now. I've ad...
by david_himself
Thu May 26, 2022 7:53 pm
Forum: Other Issues
Topic: <egXML> in ODD to XHTML
Replies: 2
Views: 673

<egXML> in ODD to XHTML

Our schema is an ODD file with examples of XML coding for our team wrapped in the tag <egXML>. Until March 2022, a multi-line example displayed in XHTML had every new line left-aligned. Now, using Oxygen 24.1 and TEI P5 16.0.0, such examples come out with only the first line at the left edge and all...
by david_himself
Thu Mar 31, 2022 6:19 pm
Forum: Other Issues
Topic: ODD to RNG
Replies: 4
Views: 1009

Re: ODD to RNG

All good! Thanks Alex (and Martin).
D
by david_himself
Wed Mar 30, 2022 7:02 pm
Forum: Other Issues
Topic: ODD to RNG
Replies: 4
Views: 1009

Re: ODD to RNG

Thanks Alex, but no luck yet. What I did. Added https://www.tei-c.org/release/oxygen/updateSite.oxygen to the existing add-on sites https://www.oxygenxml.com/InstData/Addons/community/updateSite.xml https://www.oxygenxml.com/InstData/Addons/default/updateSite.xml Checked that no add-ons had availabl...
by david_himself
Tue Mar 29, 2022 9:41 pm
Forum: Other Issues
Topic: ODD to RNG
Replies: 4
Views: 1009

ODD to RNG

Apologies for a simple-minded post. After updating from Oxygen 23.1 to 24.1, the transformation 'TEI ODD to RelaxNG XML' failed with the message 'C:\Users\XXXXXXX\AppData\Roaming\com.oxygenxml\extensions\v23.1\frameworks\https_www.tei_c.org_release_oxygen_updateSite.oxygen\tei\xml\tei\stylesheet\odd...
by david_himself
Tue Feb 08, 2022 9:07 am
Forum: Other Issues
Topic: export data from set of XML files
Replies: 10
Views: 1685

Re: export data from set of XML files

Of course! All good now. Thank you.
D
by david_himself
Mon Feb 07, 2022 11:46 pm
Forum: Other Issues
Topic: export data from set of XML files
Replies: 10
Views: 1685

Re: export data from set of XML files

Sorry to prolong this. Your xsl:message worked fine, and the files were indeed being found. I used it to actually export what I wanted and quickly edit out the unnecessary lines with Notepad++. But I want to know how to do it properly for the future with more complex outputs. (1) This still produces...
by david_himself
Mon Feb 07, 2022 2:31 pm
Forum: Other Issues
Topic: export data from set of XML files
Replies: 10
Views: 1685

Re: export data from set of XML files

Thanks for spotting the missing prefix. But still no joy. If I just run the transformation on itself, it only takes a couple of seconds. If I select the folder containing all the XMLs it's supposed to work on, it goes through them all slowly (maybe a second or so each × 1400) and finally terminates ...
by david_himself
Mon Feb 07, 2022 11:11 am
Forum: Other Issues
Topic: export data from set of XML files
Replies: 10
Views: 1685

Re: export data from set of XML files

OK, here's what I'm trying, extracting 3 simple items from each of a large number of long XMLs. Not sure why I've got copy-of for two items and value-of for the third ;-) . (Sorry, don't know how to format a code block on this message board.) The empty output file that I get makes me wonder whether ...
by david_himself
Mon Feb 07, 2022 9:39 am
Forum: Other Issues
Topic: export data from set of XML files
Replies: 10
Views: 1685

Re: export data from set of XML files

Hi Radu. I routinely create and use XSLT transformation scenarios that work on one file at a time, whether to modify the XML or to produce text output. That isn't the problem. I used to write XSLTs that aggregated the text output into a single file. Some did indeed use the collection() function, som...
by david_himself
Sat Feb 05, 2022 10:23 am
Forum: Other Issues
Topic: export data from set of XML files
Replies: 10
Views: 1685

export data from set of XML files

I want to run an XSLT script to export the contents of three specific elements from each of many XML files in a directory. I have some old XSLTs used for similar purposes in the past, but I have forgotten the trick of setting up the output side of the transformation -- how to configure the transform...
by david_himself
Tue Sep 21, 2021 2:31 pm
Forum: General XML Questions
Topic: Global unwrapping
Replies: 2
Views: 1008

Re: Global unwrapping

Thanks, Radu. I had already experimentally tried Refactoring in the Document menu of a single file, but the operation was unavailable there. It looks as if it will be available in the right-click menu for the project or the file folder. I will cautiously have a go. Many thanks for prompt reply. best...
by david_himself
Tue Sep 21, 2021 12:47 pm
Forum: General XML Questions
Topic: Global unwrapping
Replies: 2
Views: 1008

Global unwrapping

Hi I want to remove the <seg> tags from every XML file in a project, but (1) only in body, not teiHeader (2) regardless of attributes and values (3) leaving the enclosed material untouched (4) not adding extra spaces Were it not for condition (1), it would be easy with regex. Example. Change my advi...
by david_himself
Wed Feb 03, 2021 10:46 pm
Forum: XML Schemas
Topic: generate-id function and preceding axis in Schematron
Replies: 2
Views: 1734

generate-id function and preceding axis in Schematron

We have a large collection of mixed text TEI/XML files. If a file has <div> elements, either all the <div>s have @hand, or none. <handShift new="#XYZ"/> is always a milestone element. Consecutive <handShift>s are not necessarily siblings, as they can be embedded in almost any element where...
by david_himself
Fri Oct 16, 2020 4:10 pm
Forum: XML Schemas
Topic: Multiple values in target
Replies: 7
Views: 3825

Re: Multiple values in target

It's OK! Got it working as a standalone file. I am really grateful for your patience and help.

best
David
by david_himself
Fri Oct 16, 2020 3:17 pm
Forum: XML Schemas
Topic: Multiple values in target
Replies: 7
Views: 3825

Re: Multiple values in target

Dear Octavian, Thanks once again. I'm currently using a very long schema ODD and a short standalone Schematron file. I'm embarrassed to say that in my ignorance I haven't managed either to embed your new Schematron fragment in my ODD or to use it as a standalone file. I don't want to post a very lon...
by david_himself
Thu Oct 15, 2020 5:22 pm
Forum: XML Schemas
Topic: Multiple values in target
Replies: 7
Views: 3825

Re: Multiple values in target

Still a problem. The assertion you suggested works fine for persName/@ref or rs/@ref with a single value, but with multiple space-delimited values, it only fires if ALL are missing from the personography -- that is, the assertion is satisfied if ANY ONE of the values matches an xml:id. I suspect it'...
by david_himself
Thu Oct 15, 2020 3:02 pm
Forum: XML Schemas
Topic: Multiple values in target
Replies: 7
Views: 3825

Re: Multiple values in target

Thanks so much, Octavian. All my attempts to use a let statement and the tokenize fn had either not validated in the ODD or had thrown an error at a later stage. This solves my immediate problem, and the technique will be useful elsewhere too.
David
by david_himself
Thu Oct 15, 2020 11:23 am
Forum: XML Schemas
Topic: Multiple values in target
Replies: 7
Views: 3825

Multiple values in target

I want Schematron to check that a target in a TEI/XML file corresponds to an xml:id in another file. My (possibly clumsy) report uses test="not(document('../personography/HAMpersons.xml')//tei:TEI//tei:person/[@xml:id] = substring-after(./@ref,'#'))" This works fine for the majority of cas...
by david_himself
Wed Sep 30, 2020 8:19 am
Forum: XML Schemas
Topic: Schematron and tokenize
Replies: 4
Views: 2692

Re: Schematron and tokenize

Perfect! Thank you.

D
by david_himself
Wed Sep 30, 2020 7:29 am
Forum: XML Schemas
Topic: Schematron and tokenize
Replies: 4
Views: 2692

Re: Schematron and tokenize

Thanks, Radu. I thought I'd tested with a non-regex string to eliminate the possibility of regex being the cause of failure, but perhaps I did that too hastily. I also tried fn:matches, but it cannot take a sequence as first argument. Is there a simple way of testing that all space-delimited values ...
by david_himself
Tue Sep 29, 2020 11:11 pm
Forum: XML Schemas
Topic: Schematron and tokenize
Replies: 4
Views: 2692

Schematron and tokenize

Hi I'm embedding Schematron rules in a schema for validating a TEI/XML personography. I have eight reports that constrain the attributes and values in the context of <relation>. Seven fire correctly and one never fires. For some rules I'm tokenizing the value of @mutual and looking at the individual...
by david_himself
Mon Apr 27, 2020 4:51 pm
Forum: XML Schemas
Topic: locating a string with text() in Schematron
Replies: 3
Views: 2921

Re: locating a string with text() in Schematron

Hi Octavian. Many thanks for your answer. As you suggest, highlighting the beginning of the line isn't perfect, but it would be good enough for now. I've moved several errors and warnings for particular text strings from the <text> context to <lb>. The (relatively unimportant) warning about straight...
by david_himself
Sat Apr 25, 2020 12:44 pm
Forum: XML Schemas
Topic: locating a string with text() in Schematron
Replies: 3
Views: 2921

Re: locating a string with text() in Schematron

Just realised (Duh!) that I might be able to use the <lb/> at the start of every line. Should make the problem more tractable. Will try again with that in mind, and if that does it, apologies for having troubled you.
David
by david_himself
Fri Apr 24, 2020 5:39 pm
Forum: XML Schemas
Topic: locating a string with text() in Schematron
Replies: 3
Views: 2921

locating a string with text() in Schematron

In my ODD file (for Relax NG XML) I want a Schematron test to identify straight quotes in text in mixed content files. I've tried this: <elementSpec ident="text" module="textstructure" mode="change"> <!-- Reminder about curly quotes in text --> <constraintSpec ident=&qu...
by david_himself
Wed Apr 08, 2020 1:06 pm
Forum: XML Schemas
Topic: Schematron and Oxygen 22.0
Replies: 2
Views: 2039

Re: Schematron and Oxygen 22.0

Thanks, Radu. Unchecking that option fixed the problem for my colleague. I don't think the rest of us had it checked. I'm going to get rid of most or all default choices in the schema anyway, as they don't really help.

best
David
by david_himself
Tue Apr 07, 2020 4:13 pm
Forum: XML Schemas
Topic: Schematron and Oxygen 22.0
Replies: 2
Views: 2039

Schematron and Oxygen 22.0

Hi I've just started with ODD containing some elementary Schematron, generating a Relax NG XML file for validation of our TEI/XML files. For four members of our team the schema seems to work fine, but for one colleague, two rules in particular fire wrongly or fail to fire. We haven't spotted any dif...
by david_himself
Mon Mar 30, 2020 10:41 am
Forum: XML Schemas
Topic: Content completion not working with IDs
Replies: 2
Views: 2116

Re: Content completion not working with IDs

I now suspect an XPR file, as removing that from my XMLs folder solved the immediate problem. I wasn't sure which line(s) in the XPR had blocked that kind of content completion, so clues would still be welcome. Thanks.
by david_himself
Sun Mar 29, 2020 6:31 pm
Forum: XML Schemas
Topic: Content completion not working with IDs
Replies: 2
Views: 2116

Content completion not working with IDs

Hi. I have oXygen 21.1. When editing a TEI/XML file, content completion works fine for almost everything specified in our Relax NG schema when schema is associated with the file, except that when inserting a <note>, the attribute @hand does not prompt me for available xml:ids declared in the header....