All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xml.dtbook-to-zedai.convert.xpl Maven / Gradle / Ivy




    
        Transforms DTBook XML into ZedAI XML.
    

    
        
            A fileset containing references to all the DTBook files and any resources they reference (images etc.).
            The xml:base is also set with an absolute URI for each file, and is intended to represent the "original file", while the href can change during
            conversions to reflect the path and filename of the resource in the output fileset.
        
    

    
        
            One or more DTBook documents to be transformed. In the case of multiple documents, a merge will be performed.
            While all resources are referenced in the fileset on the `fileset` output port, the `in-memory`-port can contain pre-loaded documents so that they won't
            have to be loaded from disk. This means that the input documents does not have to be stored to disk -
            they could have been generated by a preceding conversion, allowing for easy chaining of scripts.
        
    

    
        
            A fileset containing references to the DTBook file and any resources it references
            (images etc.). For each file that is not stored in memory, the xml:base is set with
            an absolute URI pointing to the location on disk where it is stored. This lets the
            href reflect the path and filename of the resulting resource without having to store
            it. This is useful for chaining conversions.
        
        
    

    
        The ZedAI and MODS metadata documents.
        
    

    
        
            The directory to store the generated files in.
        
    

    
        
            Filename for the generated ZedAI file
        
    
    
        
            Filename for the generated MODS file
        
    
    
        
            Filename for the generated CSS file
        
    
    
        
            Language code of the input document.
        
    
    
        
            Whether to stop processing and raise an error on validation issues.
        
    

    
        
            Whether or not to include any referenced external resources like images and CSS-files in the output.
        
    

    
    
        
            Converts DTBook 2005-3 to ZedAI
        
    
    
        
            For px:dtbook-to-zedai-meta
        
    
    
        
            For px:dtbook-to-mods-meta
        
    
    
        
            Schema selector used for DTBook validation.
        
    
    
        
            For manipulating filesets.
        
    
    
        
            For determining the media type of files.
        
    
    
        
            Collection of utilities for validation and reporting.
        
    
    
        
            For removing the Aural CSS attributes before validation
        
    
    
        
            For px:set-base-uri
        
    


    

    
    
    

    

    

    

    
    
    

    
        
    
    
        
    
    
        
    

    
    
    
    
        
        
            
                
            
        
        
        
    

    
    
    
    Upgrade the DTBook document(s) to 2005-3
    
        
        
            
                
            
            
                
            
        
    

    
    
    
    If there is more than one input DTBook document, merge them into a single
        document.
    

    
        
            
            
                
                    
                
                
                    
                
                
            
        
        
            
            
                
                    
                
            
        
    

    
    
    
    Validate the DTBook input

    
    
    
        
            
        
        
            
        
        
    
    
    

    
    
    

    Transform to ZedAI
    
      
	
      
    
    

    
    
    
    
    Generate CSS from the visual property attributes in the ZedAI
        document
    
        
        
            
                
                
                    
                    
                    
                        
                            
                            
                        
                    
                
            
        
    

    If CSS was generated, add a reference to the ZedAI document
    
        
            
        
        
            

            

                
                    
                
                
                
                    
                        
                        
                            
                            

                            
                                Adding CSS PI
                                
                                        href="" 
                                
                            
                            
                            
                                
                                    
                                
                            
                        
                    
                
            
        
        
            
            
                
                    
                
            
        
    

    
    Strip temporary attributes from the ZedAI
        document.
    
        
            
        
        
            
        
        
            
        
    


    
    
    
    Generate MODS metadata
    
        
            
        
        
            
        
        
    
    
        
    
    

    Generate ZedAI metadata
    
        
            
        
        
            
        
        
    

    
        
        Insert metadata into the head of ZedAI
        
            
                
            
            
                
            
        
        Generate UUID for ZedAI identifier
        
    

    Create a meta element for the MODS file reference
    
        
            
                
                    
                    
                
            
        
        
    

    Insert the MODS file reference metadata into the head of
        ZedAI
    
        
            
        
        
            
        
    

    
    

    
    Add the xml:lang attribute
    
        
            
        
        
            
                
                    
                        
                        
                    
                
                
                    
                    
                
            
        
    

    
    
    
    Validate the final ZedAI output.
    
    
        
            
        
    
    
    
    


    
    
    
    
        
        
            
        

        Add the ZedAI document to the fileset.
        
            
        
        
            
            
        

        
            
                Add all the auxiliary resources to the fileset.
                
                    
                
                
                    
                    
                        
                    
                    
                    
                    
                        
                    
                    

                    
                        
                    
                    

                    
                        
                    
                    
                        
                    
                    
                        
                    
                
            
            
                
                
                
                    
                
            

        


        If CSS was generated: Add it to the fileset.
        
            
                
            

            
                
                
                    
                        
                    
                
                
                    
                    
                
            
            
                
                
                    
                        
                    
                
            
        

        Add the MODS document to the fileset.
        
            
        
        
            
            
        

        
            
                
                
                
                
            
        
        
    

    
        
            
        
        
    
    
    
        
        
            
            
            
        
        
        
            
        
        
            
                
            
            
                
                
            
            
                
                
                
                    
                        
                    
                
            
        
    






© 2015 - 2025 Weber Informatics LLC | Privacy Policy