{"id":18835956,"url":"https://github.com/tomschr/xpointer-example","last_synced_at":"2026-01-26T00:40:41.760Z","repository":{"id":143500394,"uuid":"188179680","full_name":"tomschr/xpointer-example","owner":"tomschr","description":"An Example with XInclude and XPointer","archived":false,"fork":false,"pushed_at":"2019-06-13T06:24:20.000Z","size":11,"stargazers_count":4,"open_issues_count":3,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-29T19:04:01.133Z","etag":null,"topics":["xinclude","xmllint","xpointer"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomschr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-23T07:03:17.000Z","updated_at":"2024-07-11T06:26:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"86036417-ed0b-4f39-983c-0d357068d655","html_url":"https://github.com/tomschr/xpointer-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tomschr/xpointer-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomschr%2Fxpointer-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomschr%2Fxpointer-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomschr%2Fxpointer-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomschr%2Fxpointer-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomschr","download_url":"https://codeload.github.com/tomschr/xpointer-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomschr%2Fxpointer-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28762986,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T00:37:26.264Z","status":"ssl_error","status_checked_at":"2026-01-26T00:37:25.959Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["xinclude","xmllint","xpointer"],"created_at":"2024-11-08T02:17:41.579Z","updated_at":"2026-01-26T00:40:41.752Z","avatar_url":"https://github.com/tomschr.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# XInclude and XPointer example\n\nAn Example with XInclude and XPointer and how to reference them using IDs.\n\nProcess the file with:\n\n    $ xmllint --xinclude article.xml\n\nThe file `article.xml` contains different XIncludes and XPointers:\n\n* `xi:include href=\"author.xml\" xpointer=\"xpointer(element(/1)/*)\"/\u003e`\n\n   This is kind of what we know from SLE. Here it means: Include\n   the \"author.xml\" file, start with the root element and return all\n   children\n\n* `\u003cxi:include href=\"author.xml\" xpointer=\"xpointer(id('author')/*)\"/\u003e`\n\n   Includes the file `author.xml`, points to the element with the `xml:id`\n   \"author\" (that would be `\u003cauthor\u003e`, the root element), and return\n   all children.\n\n* `xi:include xpointer=\"xpointer(id('editor')/*)\"/\u003e`\n\n   This is something special: it doesn't have an href attribute! That\n   means, it points to the current document (which is `article.xml`).\n   The XPointer points to the element with the `xml:id` \"editor\" and\n   returns all it's children.\n\n* `\u003cxi:include href=\"intro.xml\" xpointer=\"xmlns(d=http://docbook.org/ns/docbook)xpointer(id('sec.intro')/*[not(self::d:title)])\"/\u003e`\n\n   For the XML nerds. ;-) Includes the file `intro.xml`, and points to the section with the\n   `xml:id` \"sec.intro\". Include all elements except the `title` element.\n   Useful if you want to specify another title. Use sparingly!\n   (The `xmlns()` expression is needed to define the DocBook 5 namespace\n   for the XPointer.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomschr%2Fxpointer-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomschr%2Fxpointer-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomschr%2Fxpointer-example/lists"}