xsl-list
[Top] [All Lists]

[xsl] Embed document tree

2009-05-06 01:26:07
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(_at_)seipas(_dot_)com


--~------------------------------------------------------------------
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>