This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Transforming XHTML possible?
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Transforming XHTML possible?
- From: "Chris Bayes" <Chris at Bayes dot co dot uk>
- Date: Fri, 13 Apr 2001 17:59:08 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
Dwight,
Seems to work fine here and produces
<?xml version="1.0" encoding="UTF-8" ?>
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Testing Title</title>
</head>
<body>
<p>Test</p>
</body>
</html>
Ciao Chris
XML/XSL Portal
http://www.bayes.co.uk/xml
>-----Original Message-----
>From: owner-xsl-list@lists.mulberrytech.com
>[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of dwight funk
>Sent: 13 April 2001 16:21
>To: xsl-list@lists.mulberrytech.com
>Subject: [xsl] Transforming XHTML possible?
>
>
>
>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">
>
><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
>
> <head>
> <title>Testing Title</title>
> </head>
>
> <body>
> <p>Test</p>
> </body>
>
></html>
>---------------TEST.XML---------------------------------------------------
>
>---------------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>
>
> <!-- Handle any node not yet matched -->
> <xsl:template match="*|@*|text()|comment()">
> <xsl:copy>
> <xsl:apply-templates
>select="*|@*|text()|comment()"/>
> </xsl:copy>
> </xsl:template>
>
></xsl:stylesheet>
>---------------TEST.XSL---------------------------------------------------
>MESSAGE IS INTENDED ONLY FOR THE USE OF THE INDIVIDUAL OR ENTITY
>TO WHICH IT
>IS ADDRESSED AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL
>AND EXEMPT FROM DISCLOSURE. If the reader of this message is not the
>recipient or an employee or agent responsible for delivering the
>message to
>the intended recipient, you are hereby notified that any dissemination,
>distribution, or copying of this communication is strictly prohibited. If
>you have received this communication in error, please notify the sender
>immediately by E-Mail and return the original message to the sender. Thank
>you.
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list