[Mod_transform] Does xpointer in xi:include supported

Vitaly Harisov vitaly at harisov.name
Fri May 5 04:55:03 EST 2006


I successfuly setup mod_tranform but could not get it working
with xi:include and xpointer.

I have test.xml, test.html, idenity.xsl and .htaccess in the same directory

test.xml:

	<test xmlns:xi="http://www.w3.org/2001/XInclude">
       	<xi:include href="test.html" xpointer="xpointer(/html/*)/>
	</test>

test.html:

	<html>
       	test html
	</html>

identity.xsl

	<xsl:stylesheet version="1.0"
		xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

		<xsl:template match="node()|@*">
			<xsl:copy>
				<xsl:apply-templates select="@*|node()"/>
			</xsl:copy>
		</xsl:template>
	</xsl:stylesheet>

.htaccess

	<IfDefine TRANSFORM>
       	TransformSet identity.xsl
		TransformOptions +XIncludes
	</IfDefine>

Without xpointer attribute all works fine.
But with xpointer attribute xi:include does not work.

Is xpointer in xi:include supported? What I am doing wrong?

-- 
The End


More information about the Mod_transform mailing list