diff xslt/preprocess.xslt @ 0:cbdada054b4a

Basic schemas for generating csharp internal dom from model definition
author cin
date Wed, 21 Feb 2018 03:01:53 +0300
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/xslt/preprocess.xslt	Wed Feb 21 03:01:53 2018 +0300
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet version="1.0"
+	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+	xmlns:m="urn:implab.org:schemas:data-models:v1"
+	xmlns:dom="urn:implab.org:schemas:code-dom:v1"
+	xmlns:exsl="http://exslt.org/common">
+	<xsl:output method="xml" indent="yes" />
+	<xsl:template match="/">
+		<xsl:apply-templates mode="preprocess"/>
+	</xsl:template>
+	
+	<xsl:template match="package">
+		<xsl:apply-templates>
+	</xsl:template>
+	
+	<xsl:template match="m:include" mode="preprocess">
+		<xsl:variable name="doc" select="document(@href)"/>
+	</xsl:template>
+</xsl:stylesheet>
\ No newline at end of file