Schema for validation of OpenSearch description documents and stylesheets for normalization.

35 views
Skip to first unread message

qq542vev

unread,
Jun 25, 2023, 10:56:48 AM6/25/23
to OpenSearch
Hello OpenSearch developers.

I am not able to read or write English at all, so this message is also translated from Japanese text to English by DEEPL translation. Therefore, please understand that there may be parts that are difficult to read or sentences that are unnatural from the point of view of an English speaker.

Some time ago, I created an OpenSearch Client that runs in ShellScript (<https://github.com/qq542vev/shell-opensearch>). I created the schema file for OpenSearch description documents and the stylesheet for normalization because they were needed.

 * <https://github.com/qq542vev/shell-opensearch/blob/master/opensearch.rng>
 * <https://github.com/qq542vev/shell-opensearch/blob/master/opensearch-normalize.xsl>

opensearch.rng is a schema file in RELAX NG format that roughly conforms to the OpenSearch 1.1 Draft 6 specification.

opensearch-normalize.xsl is an XSLT style sheet file that converts old-style OpenSearch files to conform to OpenSearch 1.1 Draft 6, unifies case fluctuations, and adds default elements and attributes. sheet files.

We hope that these files will be of assistance to developers of OpenSearch-related software.

Translated with www.DeepL.com/Translator (free version)

----

こんにちは、OpenSearch の開発者の皆様。

私は英語の読み書きが全く出来ないので、このメッセージもDEEPL翻訳で日本語の文章を英語に翻訳しています。それ故に英語話者から見て、読みづらい部分や、不自然な文があるかもしれませんがご了承ください。

私は少し前に ShellScript で動作する OpenSearch Client を作成しました(<https://github.com/qq542vev/shell-opensearch>)。その際に OpenSearch description documents のスキーマファイルと、正規化を行うスタイルシートが必要であったため、私の方で作成致しました。

 * <https://github.com/qq542vev/shell-opensearch/blob/master/opensearch.rng>
 * <https://github.com/qq542vev/shell-opensearch/blob/master/opensearch-normalize.xsl>

opensearch.rng は OpenSearch 1.1 Draft 6 の仕様に大体準拠した RELAX NG 形式のスキーマファイルです。

opensearch-normalize.xsl は 旧形式の OpenSearch ファイルを OpenSearch 1.1 Draft 6 に適合するように変換する、また大文字と小文字のゆらぎなどを統一する、デフォルトの要素や属性を追加を行うなどの XSLT 形式のスタイルシートファイルです。

どちらも自由なライセンス公開されています故、必要であればご利用ください。OpenSearch に関連したソフトウェア開発の際に、これらファイルが開発者皆様の一助になれば幸いでございます。
Reply all
Reply to author
Forward
0 new messages