mirror of
				https://github.com/qurator-spk/ocrd-galley.git
				synced 2025-10-31 03:04:12 +01:00 
			
		
		
		
	🎨 Move XML schemata to a better path
This commit is contained in:
		
							parent
							
								
									02457155aa
								
							
						
					
					
						commit
						47dd5d3b62
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		|  | @ -54,7 +54,7 @@ COPY requirements.txt /tmp | ||||||
| RUN pip3 install --no-cache-dir -r /tmp/requirements.txt | RUN pip3 install --no-cache-dir -r /tmp/requirements.txt | ||||||
| 
 | 
 | ||||||
| COPY my_ocrd_workflow /usr/bin | COPY my_ocrd_workflow /usr/bin | ||||||
| COPY xsd              /usr/bin/xsd | COPY xsd/*            /usr/share/xml/ | ||||||
| 
 | 
 | ||||||
| WORKDIR /data | WORKDIR /data | ||||||
| CMD ["/usr/bin/my_ocrd_workflow"] | CMD ["/usr/bin/my_ocrd_workflow"] | ||||||
|  |  | ||||||
|  | @ -101,7 +101,11 @@ page_validate_xml() { | ||||||
| 
 | 
 | ||||||
|   local file |   local file | ||||||
|   for file in `ocrd workspace find -G $filegrp`; do |   for file in `ocrd workspace find -G $filegrp`; do | ||||||
|     xmllint --noout --schema `dirname $0`/xsd/pagecontent.2019-07-15.xsd $file |     XSD_DIR=`dirname $0`/xsd | ||||||
|  |     if [ ! -d "$XSD_DIR" ]; then | ||||||
|  |       XSD_DIR=/usr/share/xml | ||||||
|  |     fi | ||||||
|  |     xmllint --noout --schema $XSD_DIR/pagecontent.2019-07-15.xsd $file | ||||||
|   done |   done | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue