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 (1123)
- Stylus Studio Technical Forum (13809)
-> + 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)
-> + License could not be validated... (2)
-> + How to open (or decompress) a ... (3)
-> + Stylus Studio 2009 Home & Java (4)
-> + Connect to Informix DB 7.31.FD... (2)
-> + Unable to download stylus stud... (5)
-> + conversion CSV to XML (2)
-> + Please help to create a XSL to... (2)
-> + Stylus Studio 2009 unresponsiv... (3)
-> + Stylus Studio 2009 and IBM Jav... (2)
-> + separate one record to two lin... (3)
-> + error when running xquery comm... (6)
-> + Convert ebcdic-cp-us to utf-8 (8)
-> - hi urgent plz (1)
-> + Java compile problem (7)
-> + How to set pattern match on th... (3)
-> + Adobe Illustrator CS4 xml not ... (3)
-> + validating XSD with W3c stand... (2)
-> + Count function with condition ... (2)
-> + [Context] variable (4)
-> + Batch process HTML to XML docu... (2)
-> + Need help with adding logiic ... (2)
-> - BUG when editing File Types (1)
-> + Is Stylus Studio XML authoring... (2)
-> + Missing Xpath Query Editor (8)
-> + Error Connecting to DB2 9.5 (3)
-> - Tony (1)
-> + Problem trying to use your sof... (2)
-> + cannot save or associate a sch... (2)
-> + xsd to dtd (2)
-> + Can we use Stylus for our proj... (4)
-> + printing a parent node value i... (2)
-> + How to tell StylusDiff.exe to ... (4)
-> + Pipeline Messages not Consiten... (2)
-> + Custom XML conversion (2)
-> + Format date fields (3)
-> + Can't Connect to iSeries via I... (11)
-> + "application failed to start" ... (5)
-> - Can't connect to an Access DB ... (1)
-> + Unable to attach external JVM (3)
-> + Adding Numbers using XSLT (2)
-> + copy all elements and hardcode... (2)
-> + A bit confused on where to sta... (2)
-> + Application Menu Problem (14)
-> + API to retrieve 'Adapter URL' ... (2)
-> + How do I move my Stylus Studio... (6)
-> + API to retrieve 'Adapter URL' ... (2)
-> + InterPage Linking Problem in .... (2)
-> + xsl - header only once in fore... (7)
-> + StylusDiff.exe crashes when co... (5)
-> + Validation against schemas wan... (5)
-> + Conerting Excel to XML (5)
-> + count the number of 1 appearin... (10)
-> + Import validation errors (2)
-> + Custom Validation Saxon (4)
-> + How Can i Check if else condit... (2)
-> + Stylus Studio 2009 Ent still b... (2)
-> + cannot download SS2009 (2)
-> + Use of import-schema wants sch... (4)
-> + Replacement Install Media/Bits (3)
-> + XML to Flat File (5)
-> + Select one of multiple attribu... (13)
-> + Web Service - SOAP Error (3)
-> + I find a BUG in stylus studio ... (8)
-> + Text to XML conversion issue (2)
-> + Fixed width flat files (3)
-> + Stylus Studio Crashes when val... (3)
-> + XSL Changes doesn't reflect in... (2)
-> + Custom Conversion Definition T... (6)
-> + Support for UK EDI Tradacoms ... (2)
-> + How to find and remove all ins... (2)
-> + XML to cobol Sequential file (2)
-> + Pipe delimited flat file conve... (2)
-> + Cannot Function Block > DataDi... (3)
-> + License Authentication failed (2)
-> + Flat File Conversion (3)
-> + Struzzo.exe sing 50% of CPU (2)
-> + Saxon9 Transformation error ha... (2)
-> + com.ddtek.xquery3.XQQueryExcep... (10)
-> + XML attribute name (2)
-> + JAVA and XML (2)
-> + DB Connection Error (3)
-> + Dicstionaty Librarys for other... (2)
-> + Passing parameters (3)
-> + Xmlconverter does not work (2)
-- Previous [601-620] [621-640] [641-660] Next
+ Website Feedback (243)
+ XSLT Help and Discussion (7447)
+ XQuery Help and Discussion (1861)
+ 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.