[Scribus] Comment about object tag names and xml file format

Timothy Boyden tboyden
Wed Feb 27 15:47:10 CET 2008


Pierre,

Your a genius! I totally missed that when reading the XML code. It just goes to show that a good XML viewer is worthwhile then trying to read it in a text editor.

I'll have to experiment with PHP's SimpleXML functions and see what I can do with that.

Thanks,

Tim  

-----Original Message-----
From: scribus-bounces at kirsche.altmuehlnet.de [mailto:scribus-bounces at kirsche.altmuehlnet.de] On Behalf Of Pierre Marchand
Sent: Wednesday, February 27, 2008 3:32 AM
To: scribus at kirsche.altmuehlnet.de
Subject: Re: [Scribus] Comment about object tag names and xml file format

Vous avez ?crit?:
> Hi All,
>
> I wanted to comment on and get feedback from any developers lurking on 
> object tag names and the associated xml elements in the 1.3.5 file 
> format.
>
> I'm interested in developing a web-based tool that can manipulate 
> Scribus docs and their XML like file structure. I would be programming 
> it in PHP which has useful utilities for handling XML objects and can 
> make OO objects out of XML elements. Basically the application would 
> make use of predefined Scribus "Spec Ads" that can be customized via a 
> web form that changes the text of tagged text elements in Scribus docs.
> Currently you can give objects a name in the properties box, but it 
> does not appear to actually label or "id" the associated element 
> within the file. For example, I create a text element and assign it 
> the name of "tagline" in the properties box, I would expect that when 
> I save the document and look at it's source code, the associated itext 
> element would have an attribute named "id" with a value of "tagline". 
> This would then allow me to in PHP to do a getElementById("tagline") 
> and then have an object with the property "CH" which would contain the 
> text that I could then manipulate.
>
> Thoughts?
>
> Thanks,
>
> Tim Boyden

Hi Tim,

There is the "ANNAME" attribute of the parent "PAGEOBJECT" element of the "ITEXT" element (I somehow like/hate XML ;-) )  representing the TexfFrame which would be enough to get reach the acrual text content, no?

--
Pierre Marchand
_______________________________________________
Scribus mailing list
Scribus at nashi.altmuehlnet.de
http://nashi.altmuehlnet.de/mailman/listinfo/scribus



More information about the scribus mailing list