Skip to content

Commit

Permalink
resolved conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
raffazizzi committed Jan 24, 2025
2 parents bb24313 + 1e008fa commit e92877b
Show file tree
Hide file tree
Showing 39 changed files with 15,445 additions and 26,773 deletions.
172 changes: 172 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,175 @@
2025-01-24 Raff Viglianti <raffaeleviglianti@gmail.com>

updated p5subset

2025-01-22 Raff Viglianti <raffaeleviglianti@gmail.com>

Merge pull request #727 from TEIC/sydb_fix_constraintDecl_oversight_01
actually process `<constraintDecl>`

2025-01-20 Syd Bauman <s.bauman@northeastern.edu>

Seem to be two commits I don’t have

Stylesheets group figured out how to process constraintDecl when processing the Schematron that goes into RELAX NG output. Still no tests.

Try pulling in the various fixes made to ISOSCH processing of constraintDecl recently

Give warning (and don’t process) an sch:assert or sch:report that is directly in a constraint, without an sch:rule.

2025-01-19 Syd Bauman <s.bauman@northeastern.edu>

Tiny things: Minor bug-fix in call to makePatternID(), and re-generated an expected result (as IDs have changed).

More fixes. Mainly I re-worked a large for-each to use apply-templates. Much better. Also added code to handle queryBinding=.

Fixed some bugs, still more to go: * Yup, @joeytakeda’s version was right, need the “//” on the exception to avoid processing twice. * Removed entire “declarations:” block, as everything is already processed elsewhere. * Improved pattern name creation (in case there is no ancestor with ident=, but there is one with xml:id=, take that; if not, and if in constraintDecl, just say so). * Don’t process sch:ns elements in constraintDecl twice. HOWEVER, I am comitting this now as I have just decided to re-write the main "/key('CONSTRAINTs', )" loop, as it is giving me trouble, and probably should be an apply- templates, anyway.

2025-01-18 Syd Bauman <s.bauman@northeastern.edu>

Fix a bug that I introduced initially (caught by @joeytakeda), but also re-work how constraint declaration processing is handled altogether.

Fix omission rapidly found by @joeytakeda — process other contents of encodingDesc, too

Big changes: Merge constraintDecls from both customization ODD and base ODD into compiled output ODD, and extract from the resulting constraintDecls.

2025-01-17 Syd Bauman <s.bauman@northeastern.edu>

Bug fix: the warning message very clearly says that if there is more than one declared namespace with the same URI, only the prefix of the 1st is used. But the code didn’t actually **do** that. It tried to use both, and thus failed miserably.

2025-01-13 Patricia O Connor <trishaoconnor88@gmail.com>

Merge pull request #721 from TEIC/gusr_717
Added normalize-space to gloss value

2025-01-11 Syd Bauman <s.bauman@northeastern.edu>

Updated P5 subset

2025-01-02 Syd Bauman <sydb@users.noreply.github.com>

Change how Makefile’s doc: target *looks* (#716)

2024-12-18 Syd Bauman <s.bauman@northeastern.edu>

Stylesheets group figured out how to process constraintDecl when processing the Schematron that goes into RELAX NG output. Still no tests.

2024-12-12 gustavo <gusfer@gmail.com>

Modifying test2 to fit new results

Modified tests to include normalized whitespace for gloss

Added normalize-space to gloss value

2024-12-01 Elisa Beshero-Bondar <ebeshero@users.noreply.github.com>

Merge pull request #707 from TEIC/sydb_also_extract_und_mul_and_zxx
Handle 'und', 'mul', & 'zxx', too

2024-11-27 Syd Bauman <s.bauman@northeastern.edu>

Whatever dev has, put here

2024-11-26 Helena Bermúdez Sabel <helena.b.sabel@gmail.com>

Merge pull request #714 from TEIC/sydb_598
Remove last vestiges of using altIdent element for FPI

2024-11-26 Syd Bauman <s.bauman@northeastern.edu>

Remove last vestigages of using altIdent element for FPI

2024-11-11 Syd Bauman <s.bauman@northeastern.edu>

complete merge of dev into this branch

updated p5 subset

2024-11-06 Raff Viglianti <raffaeleviglianti@gmail.com>

Merge pull request #709 from TEIC/jsonrng
passing rng declarations through to a JSON object as string literal

2024-11-05 Raff Viglianti <raffaeleviglianti@gmail.com>

more test fixes

updated test again

updated test

passing rng declarations through to a JSON object as string literal

2024-10-30 Syd Bauman <s.bauman@northeastern.edu>

forgot to check-in test result change; also minor tweaks in whitespace

Handle 'und', 'mul', & 'zxx', too

2024-10-29 Helena Bermúdez Sabel <helena.b.sabel@gmail.com>

Merge pull request #704 from TEIC/sydb_702_extract_schematron
Improve SQF and language handling of Schematron extraction process

Merge branch 'dev' into sydb_702_extract_schematron

Merge pull request #706 from TEIC/issue_699_stylesheets_grp_fix
Stylesheets group fix of missing value list problem

2024-10-29 Syd Bauman <s.bauman@northeastern.edu>

Stylesheets group fix: When merging class attributes, treat missing mode attribute as mode=add.

2024-10-24 Syd Bauman <s.bauman@northeastern.edu>

Try to get Test/ and Test2/ to work with improved Schematron extraction routine. Test2/ seems to work, but Test/ does not, however the problem does not seem to have anything to do with Schematron extraction, and exists in the released branch as well.

In addressing #702, pass the language on from Ant to XSL, and re-work how languages and Schematron Quick Fixes are handled in extract-isosch.xsl.

2024-10-18 Magdalena Turska <tuurma@gmail.com>

Merge pull request #698 from TEIC/sydb_handle_constraintDecl_696
handle `<constraintDecl>` from extract-isosch.xsl

2024-10-15 Syd Bauman <s.bauman@northeastern.edu>

Improve 2 comments.

2024-10-06 Hugh A. Cayless <philomousos@gmail.com>

Remove link to obsolete website page.

2024-09-23 Syd Bauman <s.bauman@northeastern.edu>

bug fix and mild improvements per suggestion @joeytakeda

2024-09-21 Syd Bauman <s.bauman@northeastern.edu>

Fix tiny expected difference

2024-09-20 Syd Bauman <s.bauman@northeastern.edu>

Process constraintDecl element: use its queryBinding= attr, copy over its sch:ns elements into declared NS section, and all other child elements into a new declarations section.

2024-07-22 Helena Bermúdez Sabel <helena.b.sabel@gmail.com>

Merge pull request #688 from rvdb/jTEI-fix-name
skip //name, since it is not supported in the OpenEdition schema

2024-07-18 Syd Bauman <sydb@users.noreply.github.com>
Elli Bleeker <elli.bleeker@gmail.com>

fix path in output transform pgm (#691)
* Changed to in Makefile #552

* Forgot to delete no-longer needed comment :-)

---------

2024-07-17 root <trishaoconnor88@gmail.com>

TOC updated p5 subset
2024-07-08 helenasabel <helena.b.sabel@gmail.com>

bump version
Expand Down
25 changes: 17 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,23 @@ profiles:

doc: oxygendoc linkcss
@echo BUILD Compile documentation
# Create the release directory in which to put this stuff
test -d release/xslcommon/doc/tei-xsl || mkdir -p release/xslcommon/doc/tei-xsl
$(SAXON) -o:Documentation/index.xml Documentation/teixsl.xml Documentation/param.xsl
$(SAXON) -o:Documentation/style.xml Documentation/teixsl.xml Documentation/paramform.xsl
$(SAXON) -o:release/xslcommon/doc/tei-xsl/index.html Documentation/index.xml profiles/tei/html5/to.xsl cssFile=tei.css
$(SAXON) -o:release/xslcommon/doc/tei-xsl/style.html Documentation/style.xml profiles/default/html/to.xsl
cp Documentation/*.png Documentation/teixsl.xml Documentation/style.xml release/xslcommon/doc/tei-xsl
cp VERSION tei.css ChangeLog LEGAL/LICENCE release/xslcommon/doc/tei-xsl
# Create the documentation index by inserting tables of the variables and templates into the various sections:
$(SAXON) -s:Documentation/teixsl.xml -xsl:Documentation/param.xsl -o:Documentation/index.xml
# Convert that index file into the main HTML documentation page (which uses tei.css):
$(SAXON) -s:Documentation/index.xml -xsl:profiles/tei/html5/to.xsl -o:release/xslcommon/doc/tei-xsl/index.html cssFile=tei.css
# Create the TEI Stylebear (style.html) using a two-step process:
$(SAXON) -s:Documentation/teixsl.xml -xsl:Documentation/paramform.xsl -o:Documentation/style.xml
$(SAXON) -s:Documentation/style.xml -xsl:profiles/default/html/to.xsl -o:release/xslcommon/doc/tei-xsl/style.html
# Copy the needed pieces into the target directory:
cp -p Documentation/*.png \
Documentation/teixsl.xml \
Documentation/style.xml \
VERSION tei.css \
ChangeLog \
LEGAL/LICENCE \
release/xslcommon/doc/tei-xsl/

oxygendoc:
# when building Debian packages, the script runs under
Expand Down Expand Up @@ -132,8 +142,7 @@ installxsl: build teioo.jar
(cd release/xsl; tar cf - .) | (cd ${PREFIX}/share; tar xf -)
cp --preserve=timestamps bin/transformtei ${PREFIX}/bin
cp --preserve=timestamps source/p5subset.xml ${PREFIX}/source
# Shouldn't the "/usr" in the following line be ${PREFIX} ? —Syd & Martin, 2020-07-03
perl -p -i -e 's+^APPHOME=.*+APPHOME=/usr/share/xml/tei/stylesheet+' ${PREFIX}/bin/transformtei
perl -p -i -e 's+^APPHOME=.*+APPHOME=${PREFIX}/share/xml/tei/stylesheet+' ${PREFIX}/bin/transformtei
chmod 755 ${PREFIX}/bin/transformtei
for i in $(SCRIPTS); do (cd ${PREFIX}/bin; rm -f `basename $$i`; ln -s transformtei `basename $$i`); done

Expand Down
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
# Stylesheets
# TEI XSLT Stylesheets

[![GitHub release](https://img.shields.io/github/release/TEIC/Stylesheets.svg)](https://github.com/TEIC/Stylesheets/releases)
[![Stylesheets Tests](https://github.com/TEIC/Stylesheets/actions/workflows/test.yml/badge.svg)](https://github.com/TEIC/Stylesheets/actions/workflows/test.yml)

TEI XSL Stylesheets

This is a family of XSLT 3.0 stylesheets to transform TEI XML documents to various formats, including XHTML, LaTeX, XSL Formatting Objects, ePub, plain text, RDF, JSON; and to/from Word OOXML (docx) and OpenOffice (odt). They concentrate on the core TEI modules which are used for simple transcription and "born digital" writing. It is important to understand that they do _not_:

* cover all TEI elements and possible attribute values
* attempt to define a standard TEI processing or rendering model
* cover all TEI elements and possible attribute values
* attempt to define a standard TEI processing or rendering model

and should not be treated as the definitive view of the TEI Consortium.

For more information, see https://tei-c.org/tools/stylesheets/

## Prerequisites

The package assumes that you have several additional tools installed. Their availability on your system can be verified by issuing the command `make check`.

In particular, Stylesheets assume that you use `ant` version 1.9.x+. If for some reason, you need to use `ant` 1.8.x, you should remove all occurences of the attribute `@zip64Mode` from the file `common/teianttasks.xml`.
Expand Down
2 changes: 1 addition & 1 deletion Test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ test-oddity: actual css
else echo "==deferring: \` diff $(AR)/test.odd.html $(ER)/test.odd.html \`"; fi

$(BINDIR)/teitoodd $(FLAGS) test.odd $(AR)/test.processedodd
$(SAXON) $(AR)/test.processedodd ../odds/extract-isosch.xsl > $(AR)/test.isosch
$(SAXON) $(AR)/test.processedodd ../odds/extract-isosch.xsl lang=en > $(AR)/test.isosch
perl -i -p -e 's/This file generated [0-9T:Z-]+ by .extract-isosch.xsl./DELETED TIMESTAMP/' $(AR)/test.isosch
if [ $(DIFFNOW) -eq 1 ]; \
then diff $(AR)/test.isosch $(ER)/test.isosch; \
Expand Down
10 changes: 9 additions & 1 deletion Test/expected-results/oddbyexample.odd
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@
<attDef ident="sample" mode="delete"/>
</attList>
</classSpec>
<classSpec ident="att.handFeatures" type="atts" mode="change">
<attList>
<attDef ident="scribe" mode="delete"/>
<attDef ident="scribeRef" mode="delete"/>
<attDef ident="script" mode="delete"/>
<attDef ident="scriptRef" mode="delete"/>
<attDef ident="medium" mode="delete"/>
</attList>
</classSpec>
<classSpec ident="att.media" type="atts" mode="change">
<attList>
<attDef ident="width" mode="delete"/>
Expand Down Expand Up @@ -162,7 +171,6 @@
<moduleRef key="core" include="p title"/>
<elementSpec ident="title" mode="change">
<attList>
<attDef ident="calendar" mode="delete"/>
<attDef ident="level" mode="delete"/>
<attDef ident="type" mode="delete"/>
</attList>
Expand Down
Loading

0 comments on commit e92877b

Please sign in to comment.