Presentation is loading. Please wait.

Presentation is loading. Please wait.

Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009 XML i ”rå AFP” Formating XML data via Pagedef.

Similar presentations


Presentation on theme: "Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009 XML i ”rå AFP” Formating XML data via Pagedef."— Presentation transcript:

1 Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009 XML i ”rå AFP” Formating XML data via Pagedef

2 Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009 Agenda XML Hvad er det Hvorfor er det interessant ”Nye” AFP begreber XML eksempler

3 Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009 Hvad er XML XML stands for EXtensible Markup Language XML is a markup language much like HTML XML was designed to carry data, not to display data XML tags are not predefined. You must define your own tags XML is designed to be self-descriptive XML is a W3C Recommendation Kilde:

4 Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009 Hvorfor XML XML Simplifies Data Sharing XML Simplifies Data Transport XML Simplifies Platform Changes Kilde:

5 Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009 ”If developers have sense, future applications will exchange their data in XML.” Kilde:

6 Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009 XML dokument struktur Everyday Italian Giada De Laurentiis Harry Potter J K. Rowling

7 Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009 ”Nye” AFP Begreber XMD – stort set magen til FND og RCD The XML Descriptor structured field contains information, such as data position, text orientation, font selection, field selection, and conditional processing identification, used to format XML data that consists of text delimited by start and end tags. Fully Qualified Name

8 Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009 Everyday Italian.. File Edit Edit_Settings Menu Utilities Compilers Test Help EDIT RENE.PDEFLIB(P1BOOK1) Columns Command ===> Scroll ===> CSR ¤ « bookstore 505DA F AA A0336E00D F00D0F DA ¤ ÀLwþ Ö a « bookstore « book « title 506DA E080020F AA A8A A0436E00E000000C3100D0F DA A A ¤ ãLwþ

9 Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009 The PPFA way [ SETUNITS...] PAGEDEF FONT [OBJECT... ] [DEFINE COLOR... ] [DEFINE QTAG...] [ PAGEFORMAT ] [ SEGMENT...] [ OVERLAY...] [ XLAYOUT...] [ CONDITION...] [ FIELD...] [ DRAWGRAPHIC...] [ ENDGRAPHIC...] [ PAGEFORMAT ] [ SEGMENT...] [ OVERLAY...] [ XLAYOUT...] Kilde: IBM Page Printer Formatting Aid:User’s Guide S

10 Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009 ”Nye” PPFA tags XLAYOUT: (som LAYOUT eller PRINTLINE) QTAG: Qualified Tag, XML data element navn ATTR: XML data format

11 Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009

12 Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009 The PPFA Way XLAYOUT iname2 PAGEHEADER CONTINUE POSITION RELATIVE + 0 MM SAME ; XLAYOUT hrverm BODY GROUP POSITION ABSOLUTE 20 RELATIVE + 6 MM ;

13 Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009 The PPFA Way DEFINE qtagname QTAQ xmlTag ; DEFINE title QTAG C'bookstore',C'book',C'title';,

14 Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009 The PPFA Way FIELD START x LENGTH y FIELD ATTR attrName START x LENGTH y FIELD TEXT ' EUR ' FONT H08B ; FIELD START 1 LENGTH * FONT H08B POSITION LPOS + 0 LPOS + 0 ALIGN RIGHT ;

15 Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009 The PPFA Way Everyday Italian.. DEFINE bookStore QTAG C'bookstore'; DEFINE book QTAG C'bookstore',C'book'; DEFINE title QTAG C'bookstore',C'book',C'title'; XLAYOUT bookStore NEWPAGE; FIELD TEXT 'Bogliste'; XLAYOUT title POSITION ABSOLUTE 10 mm next; FIELD START 1 LENGTH *;.

16 Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009 PAGEDEF BOOK1 REPLACE YES UDTYPE EBCDIC; FONT H08 CS H20080 CP V10273 TYPE EBCDIC; DEFINE bookStore QTAG C'bookstore'; DEFINE book QTAG C'bookstore',C'book'; DEFINE title QTAG C'bookstore',C'book',C'title'; DEFINE author QTAG C'bookstore',C'book',C'author'; DEFINE year QTAG C'bookstore',C'book',C'year'; DEFINE price QTAG C'bookstore',C'book',C'price'; XLAYOUT bookStore NEWPAGE; FIELD TEXT 'Bogliste' position 60 mm next; XLAYOUT book POSITION absolute 10 mm next; XLAYOUT title POSITION absolute 10 mm next; field start 1 length *; field attr 'lang' start 1 length * position 30 mm *; XLAYOUT author POSITION absolute 50 mm same; XLAYOUT year POSITION absolute 80 mm same; XLAYOUT price POSITION absolute 90 mm same; field start 1 length *; field text ' kr'; Everyday Italian Giada De Laurentiis Harry Potter J K. Rowling Learning XML Erik T. Ray BOOK.pdf

17 Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009 Real Life eksempel x93397.xml ppfa.txt X93397.pdf

18 Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009 Konklusion Der er ingen grund til at kode sig en tennisarm for at fortolke XML. En PAGEDEF klarer det!


Download ppt "Printing Solutions For the IBM Environment AFP Brugergruppemøde maj 2009 XML i ”rå AFP” Formating XML data via Pagedef."

Similar presentations


Ads by Google