![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Using XSLT to transform XHTML to XHTML >Thread Next - RE: Using XSLT to transform XHTML to XHTML RE: Using XSLT to transform XHTML to XHTMLTo: NULL Date: 6/26/2008 2:28:00 AM I'm not sure what you're actually trying to accomplish, but your XPath is incorrect. Try this: <xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="xhtml xsl"> <xsl:output method="xml" indent="yes" omit-xml-declaration="yes" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/> <xsl:template match="/"> <html> <head> <title> Title: <xsl:value-of select="xhtml:html/xhtml:head/xhtml:title"/> </title> </head> <body> Body: <xsl:value-of select="xhtml:html/xhtml:body/xhtml:p"/> </body> </html> </xsl:template> </xsl:stylesheet> ML --- Matija Lah, SQL Server MVP http://milambda.blogspot.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
