[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Is XML-SPY useful for xslt?

Subject: RE: Is XML-SPY useful for xslt?
From: Mark Feblowitz <mfeblowitz@xxxxxxxxxxxxxxxx>
Date: Tue, 17 Jul 2001 10:00:16 -0400
spy not
Spy's not the issue. It's more likely MSXML. You may have better luck
configuring SPY to run Xalan or Saxon as its xslt processor.


----------------------------------------------------------------------------
----
 
Mark Feblowitz                                   [t] 617.715.7231
Frictionless Commerce Incorporated     [f] 617.495.0188 
XML Architect                                     [e]
mfeblowitz@xxxxxxxxxxxxxxxx
400 Technology Square, 9th Floor 
Cambridge, MA 02139 
www.frictionless.com  
 

 -----Original Message-----
From: 	Daniel Newman [mailto:daniel.newman@xxxxxxxxxxx] 
Sent:	Tuesday, July 17, 2001 5:01 AM
To:	xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:	RE:  Is XML-SPY useful for xslt?

My version of XML-spy uses MSXML3 parser (and a BIG list of others), so
can't see why yours wouldn't work for you?

Only thing to note is that you can't embed <br> tags outside of your
content:

	<tr><td><xsl:value-of select="w:city"/></td>
	<td><xsl:value-of select="w:hi_temp"/></td></tr>
		<br></br>

Those breaks will appear above your table, probably pushing it down the
page? And don't use <thead>. Much better to use <th>.

Daniel.

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Louise Lane
Sent: 17 July 2001 09:22
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Is XML-SPY useful for xslt?


Hello

I have been trying to get xsl to work with xml spy 3.5 with very limited
success.

I have not been able to get dpawson's select unique items to work at all (ie
barb, bark, bard)

I have been able to select elements to put in a table but the rest of the
elements (which i do not want) appear in a string above it


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi ="http://www.w3.org/2000/10/XMLSchema-instance"
xmlns:w="http://www.weather.org">

<xsl:hi_template match="/">
	<html>
		<head>	<title>Weather Eg 1</title></head>
			<body>
				<center>
				<b>Weather Data for Vancouver</b>
						<table border="1" >
						<thead align="center">
	
<td><strong>City</strong></td>
	
<td><strong>hi_temp</strong></td>
				</thead>
				<xsl:apply-hi_templates
select="//w:weather"/>
				</table>
				</center>
			</body>
	</html>

</xsl:hi_template>
<xsl:hi_template match="w:weather[w:city = 'Vancouver']">
	<tr><td><xsl:value-of select="w:city"/></td>
	<td><xsl:value-of select="w:hi_temp"/></td></tr>
		<br></br>
</xsl:hi_template>


</xsl:stylesheet>


on this xml document

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v3.5 (http://www.xmlspy.com) by Louise Lane
(personal) -->
<?xml-stylesheet type="text/xsl"
href="C:\WINDOWS\Desktop\weatherXSLexamples\weather_filter1.xsl"?>
<weather_report xmlns="http://www.weather.org"
xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
xsi:schemaLocation="http://www.weather.org
C:\WINDOWS\Desktop\weatherXSLexamples\weather.xsd">
	<weather>
		<city>Barrie</city>
		<hi_temp>25.7</hi_temp>
		<low_temp>24.0</low_temp>
		<day>Sunday</day>
	</weather>
	<weather>
		<city>Edmonton</city>
		<hi_temp>31.5</hi_temp>
		<low_temp>13.9</low_temp>
		<day>Sunday</day>
	</weather>
	<weather>
		<city>Vancouver</city>
		<hi_temp>15.6</hi_temp>
		<low_temp>10.1</low_temp>
		<day>Sunday</day>
	</weather>
</weather_report>

 puts vancouver and 15.6 in the table but the rest of the elements show
above in a string.


Also, I have not been able to get xsl:sort to work At all

So, is my code wrong? is XML Spy not good for xslt? is there a better gui
based product to use? I really don't want to have to work in NotePad

Thanks in advance,

Louise Lane


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.