Subject: [xsl] Transforming XHTML possible? From: dwight funk <dfunk@xxxxxxxxxxxxxxx> Date: Fri, 13 Apr 2001 10:20:40 -0500 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Transforming XHTML possib, Wendell Piez | Thread | RE: [xsl] Transforming XHTML possib, Chris Bayes |
[xsl] taglib url help, Java XML | Date | Re: [xsl] taglib url help, Larry Garfield |
Month |