| Subject: Re: [xsl] deep "copy-of" a source fragment From: Terence Kearns <terencek@xxxxxxxxxxxxxxxxxxx> Date: Thu, 05 Sep 2002 15:47:42 +1000 | 
The source document element looks like this... <html xmlns="http://www.w3.org/1999/xhtml">
My stylesheet looks like this:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:html="http://www.w3.org/1999/xhtml">
    <xsl:template match="/">
        <xsl:copy-of select="/html:html/html:body/node()"/>
    </xsl:template>
</xsl:stylesheet>match="/html/body/"
probably there are no elements called html or body Tidy probably wrote th eelements in the xhtml namespace. A namespace is
part of teh name of an element, so you'll need
match="/h:html/h:body/"
and xmlns:h="http://www.w3.org/1999/xhtml" to declare the h prefix on your xsl:stylesheet element.
David
_____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] deep "copy-of" a source f, David Carlisle | Thread | Re: [xsl] deep "copy-of" a source f, David Carlisle | 
| Re: [xsl] sort problem, Peter Davis | Date | Re: [xsl] deep "copy-of" a source f, Terence Kearns | 
| Month |