Wednesday, 2011-05-11

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
*** peres has joined #tp00:02
*** peres has joined #tp00:02
tansellllnz, ping?00:03
tansellyour a xslt knowledage?00:03
llnztansell: pong00:05
llnzrusty, but might be ok00:05
tansellhow does one copy attributes00:05
tansell<xsl:template match="td">00:05
tansell<td><xsl:apply-templates /></td>00:05
tansell</xsl:template>00:05
tansellIE with that I want to copy any attributes on the matched td to the output td00:05
llnzsomething like....00:10
llnz...00:10
llnzhummm... actually not sure00:12
tansellis there a way to make it preserve whitespace?00:13
llnzeasy to copy defined attributes (ones you can list out), but not so much all attributes00:13
tansell<xsl:template match="paragraph">00:14
tansell  <p>00:14
tansell    <xsl:apply-templates />00:14
tansell  </p>00:14
tansell</xsl:template>00:14
tansellIE I would like the whitespace to look like that00:14
llnznot really possible, run an xml formater over it afterwards00:15
llnzbtw: attribute copying looks like this (does colspan only)00:15
llnz<xsl:template match="td">00:15
llnz    <xsl:element name="td">00:15
llnz        <xsl:attribute name="colspan"><xsl:value-of select="@colspan"/></xsl:attribute>00:15
llnz    </xsl:element>00:15
llnz</xsl:template>00:15
tansellI tried00:19
tansell<xsl:preserve-space elements="paragraph" />00:19
tansellbut it didn't seem to work00:19
*** jnengland77 has joined #tp01:04
*** jnengland77 has left #tp01:04
matthewd<xsl:copy-of select="@*" />01:55
*** ezod has quit IRC02:01
matthewdtansell: I think preserve-space is for spacing in the source, rather than the stylesheet -- http://www.ibm.com/developerworks/xml/library/x-tipwhitesp/index.html#N1011202:03
tpb<http://ln-s.net/8o2D> (at www.ibm.com)02:03
tansellfsck! It would have been quicker to write a bloody mediawiki parser02:13
*** Erroneous has quit IRC02:29
tansellI'm almost at the stage of giving up on converting to markdown02:46
matthewdDoesn't github support mediawiki syntax?02:48
tansellyes it does02:50
tansellbut the mediawiki syntax is evil02:51
matthewdWell I won't argue with that :P02:51
matthewdCan you throw a couple of regexps at it to get a 60% solution?02:52
tansellthats kinda where I'm at02:52
tansellI have something which converts the mediawiki syntax to xhtml02:53
tansellwhich I then convert back to markdown02:53
tansellbut I keep running into corner cases where it fucks up02:53
*** llnz2 has joined #tp03:26
*** llnz has quit IRC03:29
*** llnz2 is now known as llnz03:29
*** jnengland77 has joined #tp03:56
*** jnengland77 has left #tp03:57
*** llnz has quit IRC04:32
*** Null_000 has joined #tp08:07
*** tpb has joined #tp09:07
*** ChanServ sets mode: +o tpb09:07
*** StrangerDanger has quit IRC09:14
*** tansell-laptop has quit IRC09:38
*** tansell-laptop has joined #tp11:58
*** tansell-laptop has quit IRC12:04
*** ezod has joined #tp13:50
*** Null_000 has quit IRC14:42
*** tpb has joined #tp14:56
*** ChanServ sets mode: +o tpb14:56
*** peres has quit IRC16:15
*** DTRemenak has joined #tp17:15
*** Erroneous has joined #tp18:01
*** StrangerDanger has joined #tp18:50
*** CIA-49 has quit IRC19:15
*** Erroneous has quit IRC19:21
*** Erroneous has joined #tp19:21
*** llnz has joined #tp20:16
tansellmorning23:58

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!