XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] Fwd: inclusion of .xsd files

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@gmail.com]
Sent: Thursday, August 17, 2006 4:15 PM
To: xml-dev@lists.xml.org
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@gmail.com >
Date: Aug 16, 2006 2:59 PM
Subject: inclusion of .xsd files
To: xml-dev@lists.xml.org

 
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]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS