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
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Mike GallagherSubject: Text File with Page breaks - How to determine in XML?
Author: Mike Gallagher
Date: 02 May 2012 08:42 AM
Good morning.

I have a text file that I want to create a Custom XML conversion for. It's basically a file full of letters with an address block, date and text. I created the regions and nodes for the first letter in the file, but I can't figure out how to get the conversion to recognize a page break. Column 1 of the first line in each page is a 1. I created a match pattern in the first region of ^1, but it didn't get recognized for page 2.

Any ideas?

Thanks

Mike

Postnext
Ivan PedruzziSubject: Text File with Page breaks - How to determine in XML?
Author: Ivan Pedruzzi
Date: 08 May 2012 04:49 PM
Sorry Mike to be late on this thread.

Could you share what you have done so far?

Thanks!
Ivan Pedruzzi
Stylus Studio Team

Postnext
Mike GallagherSubject: Text File with Page breaks - How to determine in XML?
Author: Mike Gallagher
Date: 09 May 2012 08:47 AM
Ivan,

Not sure I understand. I tried to define a custom XML conversion for this file of letters. I defined regions for the first page. I defined the first line of the page, and the first line of each page starts with a 1, so I specified that in a region.

The problem is that when the document changes to the second page, the custom XML conversion thinks that it's still part of the letter text of the first page. How do I get the custom XML tool to recognize a page break?

Mike

Postnext
Ivan PedruzziSubject: Text File with Page breaks - How to determine in XML?
Author: Ivan Pedruzzi
Date: 09 May 2012 08:55 AM

We would like to see and example of your data file, can you post it here as attachment?

Ivan Pedruzzi
Stylus Studio Team

Postnext
Mike GallagherSubject: Text File with Page breaks - How to determine in XML?
Author: Mike Gallagher
Date: 09 May 2012 09:15 AM
Sure, here's a sample with 2 letters. The real file would have multiples.


UnknownXMLTestMJG.DAT
Test Data

Postnext
Ivan PedruzziSubject: Text File with Page breaks - How to determine in XML?
Author: Ivan Pedruzzi
Date: 10 May 2012 10:39 AM

How would you like the output document structure to look like?


Ivan Pedruzzi
Stylus Studio Team

Postnext
Mike GallagherSubject: Text File with Page breaks - How to determine in XML?
Author: Mike Gallagher
Date: 10 May 2012 11:56 AM
I can figure out how to break out the address lines, etc. What I'm trying to figure out is how to get a header line, address block, details of the letter in a doc format, and then back to the header line, address block etc. of a second letter.

Posttop
Ivan PedruzziSubject: Text File with Page breaks - How to determine in XML?
Author: Ivan Pedruzzi
Date: 11 May 2012 11:11 AM

Nevertheless we would like to see an example of the desired output XML

Thanks!
Ivan Pedruzzi
Stylus Studio Team

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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.