upsss chyba nie do konca sie zrozumielismy - wszystko fajnie ale <xsl:include href=""> zalancza inne szablony XSL wiec to mi chyba za duzo nie da ;-) bo ja mam cos takiego:
project.xml
[xml:1:6a9b4e8a04]
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xsdproject.xsd">
<name>cso</name>
<version>1.0 alpha</version>
<desc>Niezawodny i nie powtarzalny system</desc>
<createdby>
<author fname="Michał" who="Devenloper" email="michal@qqqq.net"/>
<author fname="Piotr" who="Devenloper" email="piotr@ttt.net"/>
<author fname="Marcin" who="Designer" email="marcin@ssss.net"/>
</createdby>
<logo height="121" width="434" border="0" name="xxxx.gif"/>
<smallLogo height="121" width="434" border="0" name="xxx.gif"/>
<copyright>All rights reserved xxxx 2003</copyright>
<homesite>http://xxxxxx.net</homesite>
</project>
[/xml:1:6a9b4e8a04]
do tego mam powiedzmy plik
wstep.xml
[xml:1:6a9b4e8a04]
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="xslwstep.xsl"?>
<wstep xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xsd/wstep.xsd">
<title>Wstęp</title>
<link href="spis.xml" target="_self" name="Spis treści"/>
<link href="http://dynamicsite.net" target="_blank" name="DynamicSite Group Website"/>
</wstep>
[/xml:1:6a9b4e8a04]
Nie jesto on rozbudowany ale jak widzmy jest on przetwarzany z uzyciem szablonu XSL (pomijam tutaj plik XML Schema sprawdzajacy poprawnosc dokumenu)
[xml:1:6a9b4e8a04]
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:include href="../project.xml" />
<xsl:template match="/">
<html>
<head>
<title>
<xsl:value-of select="project/name"/> - <xsl:value-of select="wstep/title"/>
</title>
<link href="css/styles.css" rel="stylesheet" media="screen"/>
</head>
<body bgcolor="#f5f5f5" leftmargin="0" marginheight="8" marginwidth="0" topmargin="8">
<div align="center">
<table width="480" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<h1>
<img>
<xsl:attribute name="src">images/<xsl:value-of select="project/logo/@name"/></xsl:attribute>
<xsl:attribute name="height"><xsl:value-of select="project/logo/@height"/></xsl:attribute>
<xsl:attribute name="width"><xsl:value-of select="project/logo/@width"/></xsl:attribute>
</img>
</h1>
<h3>
<br/>
<h2>
<i>
<xsl:value-of select="project/name"/> - <xsl:value-of select="project/version"/>
</i>
</h2>
<br/>
<xsl:value-of select="project/desc"/>
</h3>
<h3>
<br/>
</h3>
<h3>
<br/>
</h3>
<h3>
<br/>
</h3>
<div class="createdby">
<xsl:variable name="key" select="w/createdby/author"/>
<xsl:for-each select="$key">
<xsl:value-of select="@fname"/>
<xsl:if test="@nick">
<i>
<<xsl:value-of select="@nick"/>>
</i>
</xsl:if>
<xsl:value-of select="@lname"/>
<a>
<xsl:attribute name="href">
mailto:<xsl:value-of select="@email" />
</xsl:attribute>
<<xsl:value-of select="@email"/>><br/>
</a>
<i>
<xsl:value-of select="@who"/>
</i>
<br/>
<br/>
</xsl:for-each>
</div>
<h3><br/></h3>
<h3><br/></h3>
<h3><br/></h3>
<xsl:variable name="key2" select="project/link" />
<center>|
<xsl:for-each select="$key2">
<a>
<xsl:attribute name="href">
<xsl:value-of select="@href" />
</xsl:attribute>
<xsl:attribute name="target">
<xsl:value-of select="@target" />
</xsl:attribute>
<xsl:value-of select="@name" />
</a> |
</xsl:for-each>
</center>
<h4>
<xsl:value-of select="project/copyright"/>
</h4>
</td>
</tr>
</table>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
[/xml:1:6a9b4e8a04]
Plik ten jest dosc nie poreczny i nie poprawny ale nie wiem jak tu zaczarowac go zeby pobieral potrzebne mu dane z plikow project.xml i wstep.xml - jezeli nie dokonac zlaczenia w XSL to moze w XML'u tak jak wczesniej o tym pisalem
Sorry jesli troche zamotalem ;-)