Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] Embed document tree

From: Arthur Maloney <ArthurM@------.--->
To: xsl-list@-----.------------.---
Date: 5/6/2009 5:26:00 AM
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@s...


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@l...>
--~--



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent