Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Creating simple XSL's for particular columns out of XSD Schema

From: <travisGatesMcGee@-------.--->
To: NULL
Date: 9/22/2009 3:38:00 PM
I want to create xpath query files (xsl) that will transform xml data into 
columnar format (flat files) so that I can load them into the database.
However, having trouble.... mostly do to the fact I simple forgot how to 
deal with xsl's.

Can somebody point me a GUI (free or trial based) tool that will take XSD 
Schema as input and will allow me to pick fields and its output will be a 
short xsl file, just like the one below.  I have a good idea how the table 
sctructure is or should be.  Database, SQL Server 2008, created the table, 
but it wants "annotated" xsd for loading the data into multiple tables. 
Whatever that is - I already hate this direct load into the database.

So, for practical purposes, extracting data into multiple flat files with 
delimeters is good enough.
Can I get some advice about which tool to use.  Altova has so many of 
them..... when you want something quick in the XML world, it turns into a 
scientific R&D project.

I installed their MapForce..... and then what..... cannot figure it out for 
the life of me.
Imported the XSD file..... and there is nothing intuitive there.....lots of 
menu's and button.
Need to find a simple way of doing this.

>>>>>Sample....xsl file that I want to create
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="text" />

<xsl:param name="delimiter" select=" '|' "/>

<xsl:template match="/VTM">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="/*/*">
<xsl:value-of select="FIELD1"/>
<xsl:value-of select="$delimiter"/>
<xsl:value-of select="FIELD3"/>
<xsl:value-of select="$delimiter"/>
<xsl:value-of select="FIELD6"/>
<xsl:text>&#xa;</xsl:text>
</xsl:template>
<xsl:template match="text()" />

</xsl:stylesheet>

 



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent