John, it works for me. Here's what I have.
=== a.xml ===
<?xml-stylesheet href="ab.xsl" type="text/xsl"?>
<page>
<title>a.xml</title>
<content>blah</content>
</page>
=== b.xml ===
<?xml-stylesheet href="ab.xsl" type="text/xsl"?>
<page>
<title>b.xml</title>
<content>de dah</content>
</page>
=== ab.xsl ===
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
>
<xsl:output
method="xml"
indent="yes"/>
<xsl:template match="/page">
<html>
<head>
<title>
<xsl:value-of select="title"/>
</title>
</head>
<body>
<xsl:value-of select="content"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
=== null.xml ===
<?xml-stylesheet href="a+b.xsl" type="text/xsl"?>
<null/>
=== a+b.xsl ===
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
>
<xsl:output
method="xml"
indent="yes"/>
<xsl:template match="/">
<combined>
<xsl:copy-of select="document('axkit:a.xml')"/>
<xsl:copy-of select="document('b.xml')"/>
</combined>
</xsl:template>
</xsl:stylesheet>
=== OUTPUT ===
<?xml version="1.0"?>
<combined>
<html>
<head>
<title>a.xml</title>
</head>
<body>blah</body>
</html>
<?xml-stylesheet href="ab.xsl" type="text/xsl"?>
<page>
<title>b.xml</title>
<content>de dah</content>
</page>
</combined>
--simon
On Dec 17, 2004, at 12:30 PM, John Fessenden fess wrote:
On Dec 16, 2004, at 9:55 PM, S. Woodside wrote:
I'm thinking you've got a recursive loop here. You said you had:
<xsl:template match="/">
<combined>
<xsl:copy-of select="document('axkit:a.xml')"/>
<xsl:copy-of select="document('b.xml')"/>
</combined>
</xsl:template>
presumably this xslt is being called from a.xml? In that case,
calling document('axkit:a.xml') would be infinitely recursive and
therefore very bad.
nope. I'm calling it from null.xml, which looks like this:
<?xml-stylesheet href="a+b.xsl" type="text/xsl"?>
<null/>
any other ideas?
--fess
--
http://simonwoodside.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]