Darren,
this is strange; what happens if you use sabcmd to do the transform? If
I use the following for test2.xml:
<something><x/><y/></something>
then running sabcmd on your files produces
<html><head><meta http-equiv="Content-Type" content="text/html;
charset=UTF-8"><title>Test</title></head><body><B>something</B></body></html>
which is as expected, isn't it? Can't the problem be in AxKit's
interface to Sablotron?
Tom
Darren Hill wrote:
>
> This doesn't work when I fetch the test.xml using AxKit
>
> test.xml
> --------
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <?xml-stylesheet href="test.xsl" type="text/xsl"?>
> <Test>
> </Test>
> --------
>
> test.xsl
> --------
>
> <?xml version="1.0"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>
> <xsl:template match="/">
> <xsl:variable name="layout" select="document('test2.xml')"/>
> <html>
> <head>
> <title>Test</title>
> </head>
>
> <body>
> <B><xsl:value-of select="name($layout/*)"/></B>
> </body>
> </html>
>
> </xsl:template>
>
> </xsl:stylesheet>
> ---------------
>
> Darren Hill
> Intermediate Software Engineer
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> (416) 535-4222, ext. 2256
> http://www.extend.com
> ExtendMedia
> 190 Liberty Street
> Toronto, ON Canada M6K 3L5