[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Embed document tree


Subject: [xsl] Embed document tree
From: Arthur Maloney <ArthurM@xxxxxxxxxx>
Date: Wed, 6 May 2009 06:25:26 +0100

Hello Xsl-list,



Whats the best way to embed a document tree while building html page

Consider fragment
<?xml version="1.0" encoding="UTF-8"?>
<root>
	<element1 attri1="a1" attri2="a2">
	elt1
	<element2 attri1="2a1">el2</element2></element1>
</root>

Saving this as test.xml and opening in a brower display an untransformed tree
(Usually with message XML file does not appear to have any style information
associated WANT THE TREE - DON'T WANT the MESSAGE.).

I'm Using Xslt v1.0
Typically my stylesheets start

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!--Builds Lead details as Xhtml. For body of e-mail to a Rep-->
	<xsl:import href="lib.Ced.xsl"/>
	<xsl:output method="xml" indent="yes"/>
...

<xsl:template match="/">
	<xsl:element name="html">
	<xsl:element name="head">
	<title>Ccr - Enquiry</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
...
<body>
	I WANT to EMBED DOCUMENT TREE HERE
</body>
...

--
Best regards,
 Arthur                          mailto:ArthurM@xxxxxxxxxx


Current Thread
Keywords