XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
David SampsonSubject: Name of XSL and XML files inserted at top of HTML
Author: David Sampson
Date: 18 Sep 2005 02:18 AM
I am using the Home version... when I transform my xml file into html... the first line just above the HTML tag has the full path name's of the xml and xsl files.
For Example:

9/14/2005E:\Projects\Biz Center\2005 0809-0908- tiny.RAWE:\Projects\Biz Center\2005 0809-0908- tiny.XMLAugust 20058/24/20058/27/2005
<html>
<head>
<META http-equiv="Content-Type" content="text/html">
</head>
<body class="Report">


I thought this might be a selectable feature.. so I looked under the tools/options but did not find anything that appeared to turn it on/off.

Can anyone help me know how to effect this?

Thanks...
David

Postnext
David SampsonSubject: Name of XSL and XML files inserted at top of HTML
Author: David Sampson
Date: 18 Sep 2005 02:25 AM
Actually... I just realized that the line I thought was inserted into the top of my HTML file... is actually part of the contents of my XML file.

My source XML looks like this:
<PBXRAW>
<MetaData>
<ProcDate>
9/14/2005
</ProcDate>
<SrcFile>
E:\Projects\Biz Center\2005 0809-0908- tiny.RAW
</SrcFile>
<TrgFile>
E:\Projects\Biz Center\2005 0809-0908- tiny.XML
</TrgFile>
<BillingMonth>
August 2005
</BillingMonth>

... etc

There is nothing in my XSL file that directly calls those nodes..

any ideas?
David

Postnext
(Deleted User) Subject: Name of XSL and XML files inserted at top of HTML
Author: (Deleted User)
Date: 19 Sep 2005 04:04 AM
Hi David,
XSLT has two predefined templates, used for elements and text nodes: the one matching elements will simply recurse on the child nodes, the one for text nodes will output the content of the node. I guess in your stylesheet you have removed the template matching the root node (<xsl:template match="/">..) and place your logic in the template for an inner node.
This means that all the text nodes in your source XML will be printed until that element is found.

Try adding back this template:

<xsl:template match="/">
<xsl:apply-templates select="**insert the XPath to the node**"/>
</xsl:template>

Hope this helps,
Alberto

Postnext
David SampsonSubject: Name of XSL and XML files inserted at top of HTML
Author: David Sampson
Date: 19 Sep 2005 04:34 AM
Alberto..

Thank you very much. That is exactly what I am doing.

btw... you have a beautiful little girl. There is nothing better in life than our children. Congrats...

David

Posttop
(Deleted User) Subject: Name of XSL and XML files inserted at top of HTML
Author: (Deleted User)
Date: 20 Sep 2005 05:17 AM
Thanks ;-)

Alberto

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.