diff options
author | Rutger Broekhoff | 2024-05-04 16:33:53 +0200 |
---|---|---|
committer | Rutger Broekhoff | 2024-05-04 16:33:53 +0200 |
commit | 279f790f078325582aa62e562a766204034766e4 (patch) | |
tree | 6aea4ebf68194afee9bbd4d5a8339355ec6753a7 /scratch/netex-nl-cxx/remove-enums-include.xslt | |
parent | 4f5cb257dc47dcff1b1306e4ae702669dfa93197 (diff) | |
download | oeuf-279f790f078325582aa62e562a766204034766e4.tar.gz oeuf-279f790f078325582aa62e562a766204034766e4.zip |
Try generating C++ code from NeTEx XSDs using CodeSynthesis XSD
Diffstat (limited to 'scratch/netex-nl-cxx/remove-enums-include.xslt')
-rw-r--r-- | scratch/netex-nl-cxx/remove-enums-include.xslt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scratch/netex-nl-cxx/remove-enums-include.xslt b/scratch/netex-nl-cxx/remove-enums-include.xslt new file mode 100644 index 0000000..170f732 --- /dev/null +++ b/scratch/netex-nl-cxx/remove-enums-include.xslt | |||
@@ -0,0 +1,12 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
3 | <!-- Remove includes of netex-nl-enums.xsd --> | ||
4 | <xsl:template match="xsd:include[@schemaLocation='netex-nl-enums.xsd']" /> | ||
5 | |||
6 | <!-- Apply the transformation on the entire tree --> | ||
7 | <xsl:template match="@*|node()"> | ||
8 | <xsl:copy> | ||
9 | <xsl:apply-templates select="@*|node()"/> | ||
10 | </xsl:copy> | ||
11 | </xsl:template> | ||
12 | </xsl:transform> | ||