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
Go to previous topicPrev TopicGo to next topicNext 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?

 
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.