xsl-list
[Top] [All Lists]

[xsl] Transforming multiple XML files using multiple stylesheets

2006-06-09 09:04:03
I have a master.xml file with three xml files included
like this:

<?xml version="1.0" encoding="ISO-8859-1"?>
<macro>

   <! -- Include FT files -->

   <ft  file="../fts/file_1.xml"/>
   <ft  file="../fts/file_2.xml"/>
   <ft  file="../fts/file_3.xml"/>

   .
   .
   .
</macro>

------------------------------------------------------

In my master.xsl stylesheet, I do this to transform
the included XML files, which works perfectly fine:

<xsl:for-each select="/macro/ft">
  <xsl:apply-templates
select="document(@file)/function_table"/>
</xsl:for-each>

<xsl:template match="function_table">
.
.
.
</xsl:template>
----------------------------------------------------------------------

Since I am planning on using the  function_table
template for other transformations, I would like to
delete it from the master.xsl and put it in a separate
stylesheet,
and include the stylesheet in the master.xsl to
transform all the three XML files.
Could somebody point me to the right function to do
this because I couldn't make it work using
<xsl:import>. 
Should I use <xsl:processing-instruction>? If yes,
what is the right syntax in XSLT1.0?

Thanks,
Gowri
 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>