http://www.perlmonks.org?node_id=344086


in reply to Re: downloading code from home nodes
in thread downloading code from home nodes

So in your opinion, we should remove the download code links altogther?




My code doesn't have bugs, it just develops random features.

Flame

  • Comment on Re: Re: downloading code from home nodes

Replies are listed 'Best First'.
Re: Re: Re: downloading code from home nodes
by Anonymous Monk on Apr 10, 2004 at 06:40 UTC
    No, but implementation can be as easy as an xslt stylesheet
      as easy as an xslt stylesheet

      How many time have I read that sentence! It is also as easy as writing a piece of assembly code.

      Did you have a look at the XML you get for a node? It is precisely the kind of XML that's very hard to process with XSLT. So please, if you are going to advocate using XSLT here, show us the (tested) code.

      Now if you had said "as easy as writing xml_grep --text_only --cond 'field[@name="doctext"]' node.xml | perl -n -e'if( m{<code>}..m{<//code>}) { s{</?code>}{}g; print; }'", then that would have been OK (extra / added in <//code> to avoid confusing PM's code) . Apart from the fact that it looks like the XML for the homenode I tested it on (tye's) is invalid.