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)
+ XQuery Help and Discussion (2016)
+ Stylus Studio FAQs (159)
- Stylus Studio Code Samples & Utilities (364)
-> + create an xml document with ex... (2)
-> + Default xml converter from com... (2)
-> - Transforming Data With XSLT (5)
-> ->Transforming Data With XS...
-> ->Transforming Data With XS...
-> ->Transforming Data With XS...
-> ->Transforming Data With XS...
-> + Error when creating pdf file (5)
-> + Got Shkespear XML Doc from web... (3)
-> + VFP 8 (2)
-> + CSV import (7)
-> + Generating X12 from XML (4)
-> + How to handle variable input &... (2)
-> + Grab html to xml (2)
-> + XML To X12 conversion using in... (3)
-> + XSLT mapping help required (2)
-> + convert XML to JAVA (2)
-> + Insert a carriage return or li... (3)
-> + Automatation for comparing two... (2)
-> - Filter records (1)
-> + BIT Fields (3)
-> + Restricted Mixed Content (4)
-> - Freelance Project - Mapping di... (1)
-> + flat file to xml conversion (10)
-- [1-20] [21-40] [41-60] Next
+ Stylus Studio Announcements (113)
Topic  
Postnext
Roger CroteauSubject: Transforming Data With XSLT
Author: Roger Croteau
Date: 01 Aug 2008 09:44 AM
Originally Posted: 01 Aug 2008 09:33 AM
I'm using Stylus Studio 2008 XML Professional Suite Release 2. I have created numerous XML Data files in the past but now I'm trying to get into the XSLT side of things. I've been working, or should I say "Waisting my time" on trying to create a stylesheet to extract data from my previously created data files. Below is my currently working stylesheet which I'm not having any luck with:

----------------------------------------------------------------------

<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="http://www.mimosa.org/TechXMLV3-2">

<xsl:template match="/">
<html>
<body>
<h2>List of Names</h2>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>

<xsl:template match="sg_as_event_type">
<p>
<xsl:apply-templates select="@user_tag_ident"/>
<xsl:apply-templates select="@name"/>
</p>

<tr>
<td><xsl:value-of select="@name"/></td>
<td><xsl:value-of select="@user_tag_ident"/></td>
</tr>

</xsl:template>

</xsl:stylesheet>

-----------------------------------------------------------------------

I'm attaching my Data File to this post.

I want to be able to extract some or all of the attributes "Name" and user_tag_ident and put this data into an HTML output file in some readable format ... posibly a table! So far I've just been spinning my wheels and I'm getting frustrated.

If someone out there could help me out I would surely appreciate it.

Thanks!

Roger

-------------------------------

After posting this, I relized I posted to the wrong conference. Sorry about that!

Roger


DocumentLogsa2.xsl
XSL Document

UnknownArmy_Code_Data_Dictionary_2008-07-30.xml
XML Data File

Postnext
Minollo I.Subject: Transforming Data With XSLT
Author: Minollo I.
Date: 01 Aug 2008 10:41 AM
What version of Stylus Studio are you using to develop your XSLT?

Postnext
Roger CroteauSubject: Transforming Data With XSLT
Author: Roger Croteau
Date: 01 Aug 2008 10:50 AM
I'm using Stylus Studio 2008 XML Professional Suite Release 2.

Postnext
Minollo I.Subject: Transforming Data With XSLT
Author: Minollo I.
Date: 01 Aug 2008 11:00 AM
Hm, too bad; if you were using Enterprise Suite, you could try out XML Publisher (http://www.stylusstudio.com/xml/publishing.html). Maybe you can just download Enterprise Suite and give it a try while the trial period lasts; that should get you quickly started about how to create HTML (table-based) reports from your XML documents.

Posttop
Roger CroteauSubject: Transforming Data With XSLT
Author: Roger Croteau
Date: 01 Aug 2008 11:05 AM
Thanks! I've been told that the money is not there for Enterprise so I just have to make do with what I have. So with that in mind, Is there anyone out there that can help me?

   
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.