Oxygen XML Editor
 
[XML-DEV Mailing List Archive Home] [By Thread] [By Date]

RE: [xml-dev] Fwd: inclusion of .xsd files


  • From: "Erik Wright" <erik.wright@...>
  • To: "suresh chandak" <sureshchandak@...>, <xml-dev@...>
  • Date: Thu, 17 Aug 2006 18:24:49 -0400

Suresh,
 
It is possible with XSLT.
 
Your XSL file should contain a template matching all nodes, and copying them (then applying templates to children). Something like:
 
<xsl:template match="@*|node()" priority="1">
  <xsl:copy>
    <xsl:apply-templates/>
  </xsl:copy>
</xsl:template>
 
It should contain a higher priority template matching <xsd:include> that loads the included document and applies templates to the children of the document element. Without actually writing and debugging your XSL for you, I can say that something similar to the following should work:
 
<xsl:template match="xsd:include" priority="2">
  <xsl:apply-templates select="document(@schemaLocation)/xsd:schema/*"/>
</xsl:template>
 
Off the top of my head there are no cases where the children of an included template cannot be physically inserted this way without changing the semantics, but I make no claims.
 
Regards,
 
Erik


From: suresh chandak [mailto:sureshchandak@...]
Sent: Thursday, August 17, 2006 4:15 PM
To: xml-dev@...
Subject: [xml-dev] Fwd: inclusion of .xsd files

I have send it before but it seems it did not reach.
 Kindly answer my query

---------- Forwarded message ----------
From: suresh chandak <sureshchandak@... >
Date: Aug 16, 2006 2:59 PM
Subject: inclusion of .xsd files
To: xml-dev@...

 
HI,
   I have a requirement where in ,i need to come up with one .xsd including multiple .xsd
   something like 1.xsd ,2.sxd ......,10.xsd ....will form ten.xsd(which include all 1-10 .xsd)
 
   How is it possible ?

--
Regards,
Suresh Chandak


--
Regards,
Suresh Chandak

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor
Keywords
xsl