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
Anne YatesSubject: Extra TEXT!!!
Author: Anne Yates
Date: 02 Dec 1999 07:33 AM
I have written an xsl page that uses tables to format the HTML page. When it is displayed, it put text that has not been selected between the tables. .....any suggestions?

Thanks
Anne

Postnext
Omri TraubSubject: Extra TEXT!!!
Author: Omri Traub
Date: 02 Dec 1999 09:41 AM
Without the actual code, I can't tell for sure, but I have a guess. If you put:

(xsl:apply-templates/)

in your code, templates will be applied to ALL children of the current node. My guess is that you only wanted to apply templates to a specific element, say CUSTOMERS from which you create a table. So you can say:

(xsl:apply-templates select="CUSTOMERS"/)

Otherwise, all the other children are matched by the default templates which render them as text.

- Omri.

Postnext
Anne YatesSubject: Extra TEXT!!!
Author: Anne Yates
Date: 03 Dec 1999 08:59 AM
The only place that I find the problem is where the stylus has put in it's own template called "[Default: Text and Attributes] - text()|@* " It has as the description of the template. I can not change it at all. When I am in the html view and push on the extra text, it points to this template. All of my other template are pointed to using Any further suggestions would be appreciated. Thanks for your help so far...

Anne

Postnext
Omri TraubSubject: Extra TEXT!!!
Author: Omri Traub
Date: 03 Dec 1999 10:42 AM
Hi,

Yes - this [Text and Attributes] templates is one of the two default templates in XSL. The reason you can not change them is that they are built-in templates that are always present in XSL. They are included in Stylus to provide a visual component to "backmap" to from the html output.

Have you tried using the "processor trace" debugging feature? If you click on the unwanted html, you will see the (xsl:value-of) instruction you describe. Try going to the processor trace available from the Tools menu. This will let you trace the sequence of templates leading to the appearance of the output. You will be able to go back and find which (xsl:apply-templates) call caused this text to be displayed. I then suggest you refine that instruction, giving it a select expression for only those elements you want displayed.

I hope this helps,

- Omri.

Posttop
Anne YatesSubject: Extra TEXT!!!
Author: Anne Yates
Date: 03 Dec 1999 01:58 PM
You were right! I had to explicitly point to the elements. I thought that this was taken care of in the naming of the template that was matched.

Thanks a bunch!

Anne

 
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.