Tag: XS
Accepted ruby-aws-sdk-s3 1.117.1-1 (source) into unstable
—–BEGIN PGP SIGNED MESSAGE—– Hash: SHA512 Format: 1.8 Date: Thu, 22 Dec 2022 23:30:27 +0530 Source: ruby-aws-sdk-s3 Architecture: source Version: 1.117.1-1 Distribution: unstable Urgency: medium Maintainer: Debian Ruby Team <pkg-ruby-extras-maintain…@lists.alioth.debian.org>…
XSLT XML to JSON issue
First, you don’t say what version of XSLT you want to use, so here is an XSLT 3.0 solution: <xsl:stylesheet version=”3.0″ xmlns:xs=”http://www.w3.org/2001/XMLSchema” xmlns:xsl=”http://www.w3.org/1999/XSL/Transform”> <xsl:output method=”json” indent=”yes”/> <xsl:strip-space elements=”*”/> <xsl:template match=”/r”>…
Validate JSON in XML using regex in XSD
I want to validate JSON using regex in XSD using pattern: <xs:simpleType name=”json”> <xs:restriction base=”xs:string”> <xs:pattern value=”/A(“([^”\]*|\[“\bfnrt/]|\u[0-9a-f]{4})*”|-?(?=[1-9]|0(?!d))d+(.d+)?([eE][+-]?d+)?|true|false|null|[(?:(?1)(?:,(?1))*)?s*]|{(?:s*”([^”\]*|\[“\bfnrt/]|\u[0-9a-f]{4})*”s*:(?1)(?:,s*”([^”\]*|\[“\bfnrt/]|\u[0-9a-f]{4})*”s*:(?1))*)?s*})Z/is”/> </xs:restriction> </xs:simpleType> But (?1) is not supported in xs:pattern. Please help. Read more…