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

|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |