Subject: Re: [xsl] Transforming XHTML possible? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 13 Apr 2001 11:55:36 +0100 |
Is it possible to transform XHTML ?
I have created what I think is a most basic example. The XHTML is by the standard. The style sheet should merely "copy" the XHTML from input to output. It looks to me like the xPath queries are not working. I'm using MSXML3. What am I missing ? Why doesn't this simple example work ? Are my copy templates missing something ?
Dwight Funk POWERWAY, Inc.
---------------TEST.XML--------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Test ---------------TEST.XML---------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <test>Test</test>
---------------TEST.XSL--------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" encoding="UTF-8"/>
<!-- Match the root node --> <xsl:template match="/"> <xsl:apply-templates select="*"/> </xsl:template> ...
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Good luck, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] select only first node, Ronald | Thread | Re: [xsl] Transforming XHTML possib, Wendell Piez |
RE: [xsl] select only first node, Ronald | Date | Re: [xsl] Transforming XHTML possib, Wendell Piez |
Month |