• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Importing Multiple XSL documents

 
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there a way, I can import multiple XSL documents into a given XSL document that I use.
The importing XSL document is...
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:redirect="http://xml.apache.org/xalan/redirect" extension-element-prefixes="redirect">
<xsl:include href="foo.xsl" />
<xsl:include href="bar.xsl" />

<xsl utput method="xml" indent="yes" omit-xml-declaration="yes" media-type="text/plain"/>

<xsl:template match="/rootnode">
<xsl:for-each select="selectnode">
<xsl:apply-templates select="current()" />
</xsl:for-each>
<xsl:for-each select="/nextroot">
<xsl:apply-templates select="current()" />
</xsl:for-each>
</xsl:template>

<xsl:template match="rootnode">
<xsl:call-template name="rootnode" />
</xsl:template>
<xsl:template match="nextroot">
<xsl:call-template name="nextroot" />
</xsl:template>

</xsl:stylesheet>

The two XSL-s foo.xsl and bar.xsl are to be found in the local dir. The foo.xsl file is to be found while bar.xsl is not to be picked up.

Thanks in Advance!
Raj
 
Rajagopal Manohar
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry for the wrong post ... was my fault, one of the xsl-s were in another directory.
My Apologies

Raj
 
Not looking good. I think this might be the end. Wait! Is that a tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic