Skip to content

Instantly share code, notes, and snippets.

View JDziurlaj's full-sized avatar

John Dziurlaj JDziurlaj

View GitHub Profile
@JDziurlaj
JDziurlaj / simplified-reproduction.xml
Created December 13, 2022 18:00
Reproduction for copy attribute issue Saxon-XForms
<xf:xform xmlns:rest="http://exquery.org/ns/restxq" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:demo="urn:saxon-xforms:demo">
<!--
Have to use *: in XPaths. For some reason namespace declaration is not retained by betterForms
Have to use namespace. For some reason betterForms treats no namespace as XHTML namespace.
-->
<xf:model id="m-recipes">
<xf:instance id="all">
<?xml version='1.0' encoding='UTF-8'?>
<xmi:XMI xmlns:uml='http://www.omg.org/spec/UML/20131001' xmlns:xmi='http://www.omg.org/spec/XMI/20131001' xmlns:DSL_Customization='http://www.magicdraw.com/schemas/DSL_Customization.xmi' xmlns:StandardProfile='http://www.omg.org/spec/UML/20131001/StandardProfile' xmlns:Validation_Profile='http://www.magicdraw.com/schemas/Validation_Profile.xmi' xmlns:MagicDraw_Profile='http://www.omg.org/spec/UML/20131001/MagicDrawProfile'>
<xmi:Documentation>
<xmi:exporter>MagicDraw UML</xmi:exporter>
<xmi:exporterVersion>19.0 v9</xmi:exporterVersion>
</xmi:Documentation>
<uml:Model xmi:type='uml:Model' xmi:id='_rl7MQDgNEeq4EL8CzZUWkA' name='Model' visibility='package'>
<ownedComment xmi:type='uml:Comment' xmi:id='_18_1beta_8c90288_1415101994820_370998_4336' body='Author:john.&#10;Created:2/4/2020 11:04 AM.&#10;Title:.&#10;Comment:.&#10;'>
<annotatedElement xmi:idref='_rl7MQDgNEeq4EL8CzZUWkA'/>

Keybase proof

I hereby claim:

  • I am jdziurlaj on github.
  • I am jdziurlaj (https://keybase.io/jdziurlaj) on keybase.
  • I have a public key ASBdJVxJHiW0rYPQ6FRkSwHHu5fc2IZC1-USrq-24FjXuwo

To claim this, I am signing this object:

<?xml version="1.0" encoding="UTF-8"?>
<!-- Version 2.0, NIST Election Results CDF Specification, National Institute of Standards and Technology -->
<xsd:schema xmlns="NIST_V2_election_results_reporting.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="NIST_V2_election_results_reporting.xsd" elementFormDefault="qualified" version="2.0">
<!-- ========== Roots ========== -->
<xsd:element name="ElectionReport" type="ElectionReport"/>
<!-- ========== Primitives ========== -->
<xsd:simpleType name="DateTimeWithZone">
<xsd:restriction base="xsd:dateTime">
<xsd:pattern value="[0-9]{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]|(24:00:00))(Z|[+-]((0[0-9]|1[0-3]):[0-5][0-9]|14:00))"/>
</xsd:restriction>
@JDziurlaj
JDziurlaj / sticher.xsl
Last active February 15, 2019 19:54
XFA Sticher and Stylesheet defererencing
<?xml version="1.0"?>
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xdp="http://ns.adobe.com/xdp/" xmlns:t="http://www.xfa.org/schema/xfa-template/3.3/" xmlns:xe="http://www.altova.com/xslt-extensions" extension-element-prefixes="xe">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<!--Identity template,
provides default behavior that copies all content into the output -->
<xsl:template match="@* | node()">
<xsl:choose>
<xsl:when test="@usehref">
<xsl:call-template name="flattenRef">
<xsl:with-param name="usehref" select="@usehref"/>