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 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Claus MikschSubject: XSLT Stylesheet Editor
Author: Claus Miksch
Date: 05 Dec 2006 08:03 PM
Originally Posted: 05 Dec 2006 07:44 PM
I first posted this by mistake in the Website Feedback forum. Sorry about that.
Anyway, I hope I'm not doing something too silly.
I have been trying to use a template I created for generating an html img tag with xslt. When I try to call the template, or paste the template or anything -Stylus puts several additional namespace declarations in the source. I don't know if its me or what. Help!
I've included everything I'm working with. The image tag file is a template that I pasted into the source.
Hope you can straighten me out.


DocumentimageTag.xsl
xsl and xml files

UnknownSafety.xml


UnknownSafety.xsl

Postnext
Ivan PedruzziSubject: XSLT Stylesheet Editor
Author: Ivan Pedruzzi
Date: 06 Dec 2006 09:23 PM

Claus,

In which XSLT editor's view are you working: Source, Mapper or WYSIWYG?
How do you insert the template code into the main transform?

Ivan Pedruzzi
Stylus Studio Team

Posttop
Claus MikschSubject: XSLT Stylesheet Editor
Author: Claus Miksch
Date: 07 Dec 2006 09:07 AM
I was trying to work in the wyswyg tab. I couldn't get the the template into the transform there so I pasted it directly into the source. When I ran it, -thats when things got strange. One time it put so many namespace declarations in the source that it locked and crashed. I wanted the picture to appear just in front of the "hail."
I would apply-templates|for-each|and it would say "temp1" or "hailPic."
Again, when I ran it, nothing would show in preview and, when I looked at the source, there would be even more declarations!
I couldn't actually find a tool in the wysiwyg tab to apply that template.

As for the base URL issue, I copied the path directly from the source window in the scenario box to the base URL window. Like I mentioned, I keep everything in the same folder. There just seems to be something that I'm doing wrong when it comes to generating attributes for html img tags. I looked at the help program and, as far as I can tell, I'm doing what it says.

I kinda feel like I'm running in a cave!

 
Topic Page 1 2 3 4 5 6 7 8 9 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.