vippsupport.xerox.com    Forums  Hop To Forum Categories  - Xerox FF VI Suite Forum-  Hop To Forums  FF VI Suite (VIPP)    XML Attributes

Moderators: Carlo Sans, jbouche
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Posted
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.
 
Posts: 1 | Location: Zagreb, Croatia | Registered: 24 May 2004Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
^book^@id SH

(see 'XML Variables' section in the Reference Manual).
 
Posts: 1767 | Location: Switzerland | Registered: 04 May 2001Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
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
 
Posts: 7 | Location: Russia | Registered: 31 August 2009Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
I guess you are missing an initial vertical position. You can set in "BLOCK" start proc:

BTA /BLOCK
{ 0 20 MOVETO }
{}
ETA
 
Posts: 1767 | Location: Switzerland | Registered: 04 May 2001Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
thanks a lot Wink
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.
 
Posts: 7 | Location: Russia | Registered: 31 August 2009Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

    vippsupport.xerox.com    Forums  Hop To Forum Categories  - Xerox FF VI Suite Forum-  Hop To Forums  FF VI Suite (VIPP)    XML Attributes