-
dwd
http://unlooker.com/dubbing-benny-hill-music-rave-music-inexplicably-hilarious/0/
-
fippo
m&m: morning. have you seen ben langfelds request for publication of rayo on standards@?
-
m&m
I did, and I need to respond, because I'm not sure I still have those patches /-:
-
m&m
oh, he sent hints of where his patches are actually located
-
fippo
thanks m&m ;-)
-
Tobias
any xslt pro here? :) need to have an incrementing counter in an xsl:template
-
intosi
Tobias: position() isn't good enough?
-
Tobias
position somehow always gives the same number
-
Tobias
for the first <img> tag being matched i want 0, for the next 1 and so on
-
Tobias
or starting at 1
-
intosi
The main problem is that "variables" are in fact constants. The usual way of fixing it is either using recursion, or walk over the elements with an xsl:for-each
-
intosi
position should work for the latter.
-
Tobias
the for each would be without a <xsl:template>, right?
-
m&m
the for-each can call a template
-
Tobias
<xsl:for-each select="img"> <cmd name="includegraphics"><xsl:value-of select="position()" /></cmd> </xsl:for-each>
-
Tobias
so this would replace all <img/> with a <cmd name...>0...n</cmd>?
-
m&m
I 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.
-
Tobias
element 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
-
Tobias
probably that's more for when you want to put all <img>s at one place
-
Tobias
but i basically want to replace the tag in place
-
intosi
But those <img/>s must have a parent element.
-
intosi
Just run a template on that element.
-
Tobias
usually in a <p>
-
Tobias
yes
-
Tobias
however i need that counter being global
-
m&m
you could also select the count of <img/> elements that precede the current one
-
intosi
Sure.
-
Tobias
m&m, that sounds useful, how?
-
Tobias
it would essentially be counter i'm looking for
-
m&m
IIRC, count is a function, and preceding:<path> is the selector within the count()
-
m&m
but it's been a long time
-
Tobias
thx
- m&m grumbles about authors not updating their <revision> lists
-
intosi
http://stackoverflow.com/questions/11037979/xpath-1-0-finding-count-of-nodes-before-a-specified-node
-
m&m
stackoverflow to the rescue
-
Tobias
yes..works ....thanks :)
-
Tobias
soon we'll have images in our PDFs :)
-
m&m
nice
-
Tobias
https://dl.dropboxusercontent.com/u/14672346/xmpp/extensions/xep-0324.pdf not perfect yet, but a good start i think
-
simon
Nice sequence diagrams!
-
Tobias
well...at least now we *can* use something else than ascii art :D
-
fippo
16:41 < xmpp:xsf@muc.xmpp.org/Tobias> soon we'll have images in our PDFs :)
-
fippo
errr...
-
Tobias
errr...?
-
fippo
nice!
-
Tobias
well..it's pushed...as soon as someone hits a rebuild of all XEPs, the images should be included
-
m&m
thanks Tobias
-
m&m
I'm a little hesitant to run all.sh at the moment
-
m&m
maybe we can do that this weekend
-
m&m
or someone else with rights can do it (-:
-
Tobias
xsf@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
-
Tobias
what's wrong with thatß✎ -
Tobias
what's wrong with that? ✏
-
Tobias
worked on osx with Python 2.7.5
-
Tobias
ah..athena has Python 2.5.2
-
fippo
i think the whole "with" is pretty new
-
stpeter
Tobias: is "?" close to "ß" on your keyboard?
-
Tobias
stpeter, same key on german keyboard :) just a shift between them :)
-
Tobias
fippo, so just write f = open(...) ?
-
intosi
Tobias: from future import with_statement?
-
Tobias
yeah..need to add a latex package too..since it's also not present on athena
-
intosi
Well, from __future__ import with_statement, obviously
-
Tobias
cp -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?
-
intosi
cp -r deps/* /tmp/xepbuilder/ ?
-
Tobias
wouldn't the * require a shell?
-
intosi
Or (cd debs; cp -r . /tmp/xepbuilder) if you're worried about the number of files.
-
intosi
Both require a shell.
-
intosi
Are you running this from a shell script?
-
dwd
Oh, Python?
-
Tobias
commands.getstatusoutput
-
Tobias
python
-
intosi
http://docs.python.org/2/library/shutil.html
-
intosi
shutil.copytree might be of interest.
-
Tobias
i'll try the * thing
-
intosi
getstatusoutput actually spawns a shell, IIRC
-
Tobias
so..rebuilding xeps
-
fippo
https://twitter.com/lisamarienyc/status/444162578642513920 -- this looks like the next xmpp summit should be near fluentconf
-
ralphm
heh
-
ralphm
there is a good supply of bacon on Tenerife, too
-
Tobias
fippo, better than http://i.imgur.com/TuBI68M.jpg :)
-
dwd
I can't decide if that sounds awesome or awful.
-
Zash
I can't decide if I should run to the store and see if they have any ... or walk.
-
m&m
eek
-
m&m
that is not bacon
-
Neustradamus
I have found this tweet: https://twitter.com/betamax65/status/441124379318321152/photo/1
-
fippo
neustradamus: "June 25, 2013: We have temporarily disabled account registration"
-
fippo
but telling the iteam might help
-
Kev
iteam aren't responsible for jabber.org
-
Neustradamus
yes I know this, maybe a person can reply ;)
-
Neustradamus
Tobias: https://twitter.com/Neustradamus/status/422532965583687680 some months ago ;)
-
Tobias
yeah..wonder if they are cool enough to use twitter as support input
-
fippo
neustradamus: simon and I were in contact with some marketing guy via the FSFE -- not much of a response
-
fippo
let's break it for them, then watch them struggle to fix it.
-
Zash
Break all the things!