![]() |
|
||||||||||||
|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
Hi!
I'am using VIPP IDE 4.0 (VIPP 5.0). If I have XML node with 2 attributes, for example <book id="001" author="John"> something </book> how do I print a value of the id attribute? Thanks. |
|||
|
^book^@id SH
(see 'XML Variables' section in the Reference Manual). |
||||
|
Greetings, all!
I'm a beginner in VIPP. and in continue if this theme I have a question... if I have an xml file
%!
XGF
[(Projects) (form22)] SETPROJECT
(form22.xjt) STARTXML
<?xml version="1.0" encoding="Windows-1251" ?>
<BLOCK>
<DOC ski="14100109020471"/>
<DOC ski="14100109020472"/>
<DOC ski="14100109020473"/>
....
</BLOCK>
%%EOF
how can I obtain the data in ski attribute of each DOC node to print this data one by one? (like a column as shown below): 14100109020471 14100109020472 14100109020473 code in form22.xjt:
%!
MM SETUNIT
PORT ORITL
5 SETLSP
/COUR 10 SETFONT
BEGINXPD
BTA /BLOCK^DOC
{}
{
0 MOVEH ^@ski SH
NL
} ETA
ENDXPD
with this code I'm getting a virgin white clear paper sheet whithout any printed data... what am I doing wrong? thanks beforehand |
||||
|
I guess you are missing an initial vertical position. You can set in "BLOCK" start proc:
BTA /BLOCK { 0 20 MOVETO } {} ETA |
||||
|
thanks a lot
alittle dancing with tambourine and "here you are, please":
BEGINXPD
BTA /BLOCK
{0 20 MOVETO}
{}
ETA
BTA /BLOCK^DOC
{
10 MOVEH
^@ski SH
NL
}
{}
ETA
ENDXPD
working exactly I wish. |
||||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|

