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 (1144)
- Stylus Studio Technical Forum (14122)
-> + xQuery transformation encounte... (2)
-> + Schema Evolution (2)
-> + Preview in Browser button gray... (4)
-> + converter:EDI:val=no AND chr=.... (4)
-> + [XQuery][DB2 JDBC Driver]Unsu... (2)
-> + Need Help Create XML file thro... (4)
-> + Flat file to XML conversion in... (5)
-> + How to set delimiters if it's ... (4)
-> + XSD Validation failing (4)
-> + XSD Validation failing (2)
-> + Web Service Call cannot retrie... (7)
-> + Flat file conversion to XML (2)
-> + Stylus Studio crash (5)
-> + Stylus Studio No Longer loads (2)
-> + How do I print in color? (2)
-> + Integrating Documentum WebPubl... (2)
-> + Stylus Studio crashes on openi... (4)
-> + Change format of XML output fo... (3)
-> + XSLT mapper / Source file not ... (7)
-> + Stylus Studio crashes on start... (3)
-> + Loading GML3.1 (3)
-> + NullPointerException when runn... (5)
-> + Can not open Stylus Studio (3)
-> + macros for custom validation e... (6)
-> + Does Stylus Studio generate XM... (4)
-> + another csv conversion (7)
-> + ADD CVS to Source Control drop... (2)
-> + Automate xquery (6)
-> + Correcting multiple XML docume... (2)
-> + Unable to locate Components\Da... (5)
-> + Runtime Error, Struzzo.exe, Ab... (11)
-> + Convert XML to EDIfact (3)
-> + I don't have the Mapper tab (6)
-> + CSV conversion with null field (3)
-> + Converting a Complex Flat File... (2)
-> - installion in batch mode (1)
-> + Complete Custom Validation Lis... (2)
-> + creating xml from csv flat fil... (9)
-> - need Help Regarding XBRL (1)
-> + Exception FODC0004: file or di... (2)
-> + Activation (2)
-> + java runtime error (2)
-> + connection problem with AS 400... (4)
-> + XML to 837I EDI -- multiple NM... (3)
-> + WYSIWYG in SSv7 (2)
-> - Write into < head /> tags us... (1)
-> + Maximum recursion depth exceed... (2)
-> - Code coverage testing (1)
-> - Passing JavaScript with multip... (1)
-> + preserving white space in XML ... (8)
-> + XXX maps to XXX system (3)
-> + Help with extracting bookmarks... (2)
-> + Stylus Studio crashes when sou... (2)
-> + WSDL not Displaying properly (5)
-> + How to use fonts other than ba... (5)
-> + Saxon XSLT2 and FOP for XSL:FO... (3)
-> + Converting from XML to EDIFACT (5)
-> + Looping more than one time thr... (2)
-> - Need help with using XQuery in... (1)
-> + Looping - Taking the comma out (3)
-> + xslt mapper is only processing... (4)
-> - Newbie: using Saxon 9.1 with F... (1)
-> + Editing ![CDATA[]]> in the Gr... (2)
-> + Convertic EDI files into XML (7)
-> + Type2 Authentication missing D... (6)
-> + Please help in a simple conver... (5)
-> + Doc/Literal Wrapped (4)
-> + Error starting Stylus Studio (9)
-> + WYSIWYG Menu Bar and Tab Missi... (2)
-> + XML file size limits (2)
-> + XML Publisher (2)
-> + cant get namespace declaration... (5)
-> + Fixed Width to XML (3)
-> - file to xml conversion (1)
-> + Create Multiple Page (3)
-> + Flat file conversion with colu... (3)
-> + New Line character problem in ... (2)
-> + need help - stylus doesn't sta... (2)
-> + command line StylusValidator ... (3)
-> + Help unistalling (2)
-> + recurse problem analysis (3)
-> - Newbie: WSAD and file paths (1)
-> - Stylus Studio® 2009 XML Enterp... (1)
-> + Help with XSL to transform two... (4)
-> + connect to xhive (2)
-> - element id and name attributes... (1)
-> - http://www.w3.org/2001/XMLSche... (1)
-> + Error message when converting ... (2)
-> + XML id and anyuri datatype (2)
-> - import xml into an ms acces... (1)
-> + Change version (6)
-> + Translate two files into one (3)
-> + invalid relative uri with data... (7)
-> + My table crashes java Runtime (5)
-> + inx to pdf (3)
-> + XSD - multiple similar namespa... (7)
-> + validating many xml files (4)
-> + Stylesheet Parameters (3)
-> + create web service using Stylu... (2)
-> + connect with sql server (4)
-- Previous [601-620] [621-640] [641-660] Next
+ Website Feedback (244)
+ XSLT Help and Discussion (7506)
+ XQuery Help and Discussion (1890)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (361)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Nicolas WahlSubject: Help to Convert cvs file to XLM
Author: Nicolas Wahl
Date: 20 Jan 2005 07:39 AM
Hi,
I am a brand new user to Stylus Studio and XML and I need some help.

I have to create a XML file to upload a glossary to my site.
I attach my file "glossary.xsd", with the desired schema.
Also, my input file: "Glosario1.txt", in this case
the separator character is a colon, and it has 2 fields:
"CONCEPT", separated by the colon from the second field "DEFINITION".
The texts are spanish, with input and output encoding="windows-1250".

I have done my best efforts to do this conversion, but could
not get it done.
Thanks for your help,
Nicolas


Documentglossary.xsd
glossary.xsd

UnknownGlosario1.txt
Glosario1.txt

Postnext
Tony LavinioSubject: Help to Convert cvs file to XLM
Author: Tony Lavinio
Date: 20 Jan 2005 01:48 PM
First, to make this simpler, I'm attaching the XSLT document that
phase 2 below does right to this message. But I'm also giving you
the instructions so you know what I did. You will have to do phase
1 yourself.

Phase 1: the converter
1. File|New|Convert to XML
2. Choose your Glosario1.txt file
3. Set BOTH the input and the output encodings to windows-1250
(Note that the entries for "Aglabíes" and "Iconografía" are missing their colons.)
(Also, some of your entries also include a colon in the description, but we'll take care of that later in the XSLT.)
4. Change the name of the first field from <field> to <concept>. We'll leave the others alone for now.
5. Save this as glosario.conv. If you want to see how it looks, use Preview (the green triangle)

Phase 2: the xslt
1. I used the File|Document Wizards to convert the XSD you presented into XML, which I then used as the framework of the XSLT.
2. File|New|XSLT Document
3. For Source XML URL, press the [...] button and choose your Glosario1.txt file, and put a [x] in the "Convert to XML Using Adapter" box. Press OK.
4. Then, expand the "Convert to XML Definitions" item and choose your Glosario.conv file and press OK.
5. Press OK to save the Scenario Properties.
6. Paste in the boilerplate text from the Document Wizard window.
7. Drag the nodes from the right-hand window to where they belong in the XSLT.
8. Finally, we'll wrap the reference to the description in a for-each to handle the colons that were dropped by the Convert-to-XML engine.
9. There are a bunch of elements in the boilerplate that you will have to fill in the values for, but this code should populate the glossary texts for you.


Documentglosario.xslt

Postnext
Nicolas WahlSubject: Help to Convert cvs file to XLM
Author: Nicolas Wahl
Date: 24 Jan 2005 09:42 AM
Tony, thanks a lot.

Sorry bothering you, but when I do
"Phase 2, 5. Press OK to save the Scenario Properties.",
my PC hangs consistently, al the time and I can´t go to the next step.
Can I have a configuration problem?
I´m using W2000 Sp3, Stylus ProfEd build 6.1 build 287e, 1.5.0_01-b08 Java

Any suggestion, please?

Postnext
Ivan PedruzziSubject: Help to Convert cvs file to XLM
Author: Ivan Pedruzzi
Date: 24 Jan 2005 11:11 PM
Hi Nicolas,

The error you are experiencing is caused by the JVM 1.5.
The problem will be fixed with the next update.

The only work around I can suggest for now is to use JVM 1.4

Ivan

Postnext
Tony LavinioSubject: Help to Convert cvs file to XLM
Author: Tony Lavinio
Date: 25 Jan 2005 04:07 PM
The next patch release will include a fix for this.

Posttop
Tony LavinioSubject: Help to Convert cvs file to XLM
Author: Tony Lavinio
Date: 03 Feb 2005 06:46 PM
Just as a note, the new patch 287g is available, and
include the solution for this.

   
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-2011 All Rights Reserved.