On Thu, 13 Feb 2003 19:38:01 +0000
g4 <[EMAIL PROTECTED]> wrote:

> Hi there list,
> 
> is it possible to use Xinclude within XSL? At present I have this:
> 
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
> version='1.0'
>                  xmlns:xlink="http://www.w3.org/1999/xlink";
>                  xmlns:xi="http://www.w3.org/2001/XInclude";>
> 
> <xsl:import href="menu.xsl"/>
> 
> <xsl:param name="section"/>
> <xsl:param name="meta"/>
> <xsl:param name="base-url"/>
> 
> <xsl:template match="/">
>       <html>
>               <head>
>                       <title>Conservatories Online</title>
>                       <xi:include href="{$meta}meta-{$section}.xml"/>
>               </head>
>       <body> .......
> 
> in the source output I get:
> 
> <xi:include href="metadata/meta-company.xml"/>
> 

in sitemap.xmap you must insert the xinclude transformation before serialization
-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to