*** tpb has joined #tp | 00:00 | |
*** ChanServ sets mode: +o tpb | 00:00 | |
*** peres has joined #tp | 00:02 | |
*** peres has joined #tp | 00:02 | |
tansell | llnz, ping? | 00:03 |
---|---|---|
tansell | your a xslt knowledage? | 00:03 |
llnz | tansell: pong | 00:05 |
llnz | rusty, but might be ok | 00:05 |
tansell | how does one copy attributes | 00:05 |
tansell | <xsl:template match="td"> | 00:05 |
tansell | <td><xsl:apply-templates /></td> | 00:05 |
tansell | </xsl:template> | 00:05 |
tansell | IE with that I want to copy any attributes on the matched td to the output td | 00:05 |
llnz | something like.... | 00:10 |
llnz | ... | 00:10 |
llnz | hummm... actually not sure | 00:12 |
tansell | is there a way to make it preserve whitespace? | 00:13 |
llnz | easy to copy defined attributes (ones you can list out), but not so much all attributes | 00: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 |
tansell | IE I would like the whitespace to look like that | 00:14 |
llnz | not really possible, run an xml formater over it afterwards | 00:15 |
llnz | btw: 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 |
tansell | I tried | 00:19 |
tansell | <xsl:preserve-space elements="paragraph" /> | 00:19 |
tansell | but it didn't seem to work | 00:19 |
*** jnengland77 has joined #tp | 01:04 | |
*** jnengland77 has left #tp | 01:04 | |
matthewd | <xsl:copy-of select="@*" /> | 01:55 |
*** ezod has quit IRC | 02:01 | |
matthewd | tansell: 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#N10112 | 02:03 |
tpb | <http://ln-s.net/8o2D> (at www.ibm.com) | 02:03 |
tansell | fsck! It would have been quicker to write a bloody mediawiki parser | 02:13 |
*** Erroneous has quit IRC | 02:29 | |
tansell | I'm almost at the stage of giving up on converting to markdown | 02:46 |
matthewd | Doesn't github support mediawiki syntax? | 02:48 |
tansell | yes it does | 02:50 |
tansell | but the mediawiki syntax is evil | 02:51 |
matthewd | Well I won't argue with that :P | 02:51 |
matthewd | Can you throw a couple of regexps at it to get a 60% solution? | 02:52 |
tansell | thats kinda where I'm at | 02:52 |
tansell | I have something which converts the mediawiki syntax to xhtml | 02:53 |
tansell | which I then convert back to markdown | 02:53 |
tansell | but I keep running into corner cases where it fucks up | 02:53 |
*** llnz2 has joined #tp | 03:26 | |
*** llnz has quit IRC | 03:29 | |
*** llnz2 is now known as llnz | 03:29 | |
*** jnengland77 has joined #tp | 03:56 | |
*** jnengland77 has left #tp | 03:57 | |
*** llnz has quit IRC | 04:32 | |
*** Null_000 has joined #tp | 08:07 | |
*** tpb has joined #tp | 09:07 | |
*** ChanServ sets mode: +o tpb | 09:07 | |
*** StrangerDanger has quit IRC | 09:14 | |
*** tansell-laptop has quit IRC | 09:38 | |
*** tansell-laptop has joined #tp | 11:58 | |
*** tansell-laptop has quit IRC | 12:04 | |
*** ezod has joined #tp | 13:50 | |
*** Null_000 has quit IRC | 14:42 | |
*** tpb has joined #tp | 14:56 | |
*** ChanServ sets mode: +o tpb | 14:56 | |
*** peres has quit IRC | 16:15 | |
*** DTRemenak has joined #tp | 17:15 | |
*** Erroneous has joined #tp | 18:01 | |
*** StrangerDanger has joined #tp | 18:50 | |
*** CIA-49 has quit IRC | 19:15 | |
*** Erroneous has quit IRC | 19:21 | |
*** Erroneous has joined #tp | 19:21 | |
*** llnz has joined #tp | 20:16 | |
tansell | morning | 23:58 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!