This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:variable name="serial-params"> | |
<output:serialization-parameters> | |
<output:omit-xml-declaration value="yes"/> | |
</output:serialization-parameters> | |
</xsl:variable> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:output="http://www.w3.org/2010/xslt-xquery-serialization" | |
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" | |
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" | |
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" | |
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" | |
xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" | |
xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Tests queries text:p's human understandable style-name for testing in template | |
--> | |
<xsl:template match="text:p"> | |
<xsl:variable name="style" select="@text:style-name"/> | |
<xsl:variable name="name" select="/root()/node()//office:automatic-styles/style:style[@style:name=$style]/@style:parent-style-name"/> | |
<xsl:choose> | |
<xsl:when test="$name = 'Separator' or $style = 'Separator'"> | |
</xsl:when> | |
<xsl:when test="$name = 'Person' or $style = 'Person'"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns="http://www.tei-c.org/ns/1.0" | |
xmlns:output="http://www.w3.org/2010/xslt-xquery-serialization" | |
exclude-result-prefixes="xs" | |
version="3.0"> | |
<xsl:output indent="yes" method="xml"/> | |
<xsl:mode on-no-match="shallow-copy"/> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Declare a variable to store the image overlay. | |
let image; | |
// Get the file input element in the Add event listener to the file upload element (e.g. with the id "file-imput-html-element") in your HTML. | |
const AddImage = document.getElementById('file-imput-html-element').addEventListener("change", (e) => { | |
// Set the initial image bounds in the Leaflet.js map. | |
let bounds = [ | |
[0, 0], | |
[100, 100] | |
]; |