[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
RE: [xml-dev] Fwd: inclusion of .xsd files
- From: "Erik Wright" <erik.wright@radialpoint.com>
- To: "suresh chandak" <sureshchandak@gmail.com>, <xml-dev@lists.xml.org>
- 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
I have send it before but it seems it did not reach.
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]