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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
- XSLT Help and Discussion (7625)
-> + Use of before and after string (3) Sticky Topic
-> - How do I substitute element ty... (1)
-> + How does one add working days ... (4)
-> - Help, I have existing XLT and... (1)
-> + Need help on XSLT issue - (2)
-> + EDI to XML Conversion (7)
-> - XML To JSON Conversion using X... (1)
-> + Formatting Paragraphs to same ... (2)
-> - Grouping of records (1)
-> + Problems with xsd 1.1 (4)
-> + XML to HL7 mapping (3)
-> + XSLT 3 and Iterate (2)
-> + XSL-FO to PDF preview (3)
-> + java.lang.RuntimeException: Er... (2)
-> + Create Acroforms with Stylus X... (2)
-> + How to change XSLT parameter s... (3)
-> + how to change format of the da... (2)
-> + Search "Next 8 Results " doesn... (2)
-> - Support for Git (1)
-> + newbee (8)
-- [1-20] [21-40] [41-60] Next
+ XQuery Help and Discussion (2016)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Sid AsaniSubject: help needed
Author: Sid Asani
Date: 10 Mar 2006 01:53 PM
hey guys new to xml programming so bear with me ...im trying to make a stylesheet by taking out specific info from an xml document....now i wrote the xml document and the xsl document i just dont know how to test it....

xml:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="testsxl.xsl"?>
<Department>
<Employees>
<fname>Mark</fname>
<lname>Goss</lname>
<Position>ManagerII</Position>
</Employees>
</Department>



xsl:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<b>First Name of Employee : </b><xsl:value-of select="Department/Employees/fname" /><br/>
<b>Last Name of Employee : </b><xsl:value-of select="Department/Employees/lname" /><br/>
<b>Position of Employee : </b><xsl:value-of select="Department/Employees/Position" /><br/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

Postnext
(Deleted User) Subject: help needed
Author: (Deleted User)
Date: 10 Mar 2006 02:12 PM
Hi, Sid.

To test your XSLT:
1. Open the XSLT in Stylus Studio.
2. Click the button to the right of the Scenario drop-down list above the editing window. This opens the Scenario Properties dialog box.
3. Enter the URL for your XML document in the Source XML URL field and click OK.
4. Now, click the Preview Result button (the green "Play" triangle above the editing window).

The Preview window will show you the result of processing that XML document with the XSLT you created.

Hope this helps.

David Foster
Stylus Studio Team

Postnext
Sid AsaniSubject: help needed
Author: Sid Asani
Date: 10 Mar 2006 04:18 PM
Hey David

thanks for the reply.....it brings up the values i entered in the xsl but it doesnt seem to pull the data from the xml file.....i tried even putting the full location of the xsl file in the href part of the xml. You see anything wrong in the code or maybe something im missing.

Thanks

Postnext
Sid AsaniSubject: help needed
Author: Sid Asani
Date: 10 Mar 2006 04:43 PM
david ...got it to work ..my next question is how can i convert the xsl to make an email or word document???

Posttop
Minollo I.Subject: help needed
Author: Minollo I.
Date: 10 Mar 2006 08:33 PM
Generating HTML is probably the easiest thing to do.
You may want to try the XML-to-HTML WYSIWYG component; take a look at http://www.stylusstudio.com/learn_xslt.html

Hope this helps,
Minollo

   
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.