Tobiasso this would replace all <img/> with a <cmd name...>0...n</cmd>?
m&mI think so, but it's been a long while since I've done XSLT, but that feels right
intosi Sorry, wandered off. That should work. My XSLT is a bit rusty as well, though.
Tobiaselement for-each only allowed within a template, variable or param
compilation error: file xep2texml.xsl line 408 element value-of
element value-of only allowed within a template, variable or param
compilation error: file xep2texml.xsl line 407 element for-each
xsltParseStylesheetTop: unknown for-each element
Tobiasprobably that's more for when you want to put all <img>s at one place
Tobiasbut i basically want to replace the tag in place
intosiBut those <img/>s must have a parent element.
intosiJust run a template on that element.
Tobiasusually in a <p>
Tobiashowever i need that counter being global
m&myou could also select the count of <img/> elements that precede the current one
Tobiasm&m, that sounds useful, how?
Tobiasit would essentially be counter i'm looking for
m&mIIRC, count is a function, and preceding:<path> is the selector within the count()
m&mbut it's been a long time
m&mgrumbles about authors not updating their <revision> lists
Tobiashttps://dl.dropboxusercontent.com/u/14672346/xmpp/extensions/xep-0324.pdf not perfect yet, but a good start i think
simonNice sequence diagrams!
Tobiaswell...at least now we *can* use something else than ascii art :D
fippo16:41 < xmpp:email@example.com/Tobias> soon we'll have images in our PDFs :)
Tobiaswell..it's pushed...as soon as someone hits a rebuild of all XEPs, the images should be included
m&mI'm a little hesitant to run all.sh at the moment
m&mmaybe we can do that this weekend
m&mor someone else with rights can do it (-:
Tobiasxsf@athena:~/xmpp-hg/extensions$ ./gen.py -a
./gen.py:79: Warning: 'with' will become a reserved keyword in Python 2.6
File "./gen.py", line 79
with open(output_dir + '/' + 'inlineimage-' + str(no) + '.' + file_ext, 'wb') as f:
SyntaxError: invalid syntax
Tobiaswhat's wrong with thatß
Tobiaswhat's wrong with that?
Tobiasworked on osx with Python 2.7.5
Tobiasah..athena has Python 2.5.2
fippoi think the whole "with" is pretty new
stpeterTobias: is "?" close to "ß" on your keyboard?
Tobiasstpeter, same key on german keyboard :) just a shift between them :)
Tobiasfippo, so just write f = open(...) ?
intosiTobias: from future import with_statement?
Tobiasyeah..need to add a latex package too..since it's also not present on athena
intosiWell, from __future__ import with_statement, obviously
Tobiascp -r deps /tmp/xepbuilder/ <--- how do i write this so it copies files from deps to xepbuilder folder, not creating the deps folder in the xepbuilder folder?
intosicp -r deps/* /tmp/xepbuilder/ ?
Tobiaswouldn't the * require a shell?
intosiOr (cd debs; cp -r . /tmp/xepbuilder) if you're worried about the number of files.