cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yury Mikhienko <yu...@mobicomk.donpac.ru>
Subject Re: Xinclude with XSL?
Date Fri, 14 Feb 2003 10:50:39 GMT
On Thu, 13 Feb 2003 19:38:01 +0000
g4 <jason@root10.net> 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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message