- or download this
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
...
<xsl:template mode="restriction" match="xsd:maxInclusive">$value <=
+ <xsl:value-of select="@value" /> and </xsl:template>
<xsl:template mode="restriction" match="xsd:maxExclusive">$value <
+<xsl:value-of select="@value" /> and </xsl:template>
</xsl:stylesheet>
- or download this
sub longitudeType {
# The longitude of the point. Decimal degrees, WGS84 datum.
...
return FALSE if _is_null($value);
return xsd_decimal($value) and $value >= -180.0 and $value < 180.0
+ and TRUE;
}
- or download this
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema
...
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
- or download this
sub latitudeType {
# The latitude of the point. Decimal degrees, WGS84 datum.
...
return FALSE if _is_null($value);
return xsd_integer($value) and $value >= 0 and $value <= 1023 and
+TRUE;
}
- or download this
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema
...
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
- or download this
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
...
<xsl:template mode="restriction" match="xsd:maxInclusive">$value <=
+ <xsl:value-of select="@value" /> and </xsl:template>
<xsl:template mode="restriction" match="xsd:maxExclusive">$value <
+<xsl:value-of select="@value" /> and </xsl:template>
</xsl:stylesheet>
- or download this
package Foo;
...
}
1;