• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

test please delete

Collapse
This is a sticky topic.
X
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    [NickFitz ploughs a lonely furrow]

    Comment


      Input:

      Code:
      <?xml version="1.0" encoding="UTF-8"?>
      <field>
          <furrow implement="plough" implementor="NickFitz" sociability="lonely"/>
      </field>
      Transform:

      Code:
      <?xml version="1.0" encoding="UTF-8"?>
      <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
          <xsl:output omit-xml-declaration="yes"/>
      
          <xsl:template match="/">
              <xsl:apply-templates select="field"/>
          </xsl:template>
          
          <xsl:template match="field">
              <xsl:apply-templates select="furrow"/>
          </xsl:template>
          
          <xsl:template match="furrow">
              <xsl:text>[</xsl:text>
              <xsl:value-of select="@implementor"/>
              <xsl:text> </xsl:text>
              <xsl:value-of select="@implement"/>
              <xsl:text>s a </xsl:text>
              <xsl:value-of select="@sociability"/>
              <xsl:text> </xsl:text>
              <xsl:value-of select="name()"/>
              <xsl:text>]</xsl:text>
          </xsl:template>
      
      </xsl:stylesheet>
      Output:

      Code:
      [NickFitz ploughs a lonely furrow]


      What I just said, but the implement, implementor and social context are now parameterised as attributes in the XML input
      Last edited by NickFitz; 4 May 2008, 03:02.

      Comment


        Dammit!

        I've been defeated. Someone has broken through this tough bad ass I don't give a damn contractor exterior I project. Found myself with old lady last night grinning like a mother****er for no apparent reason.

        Its scary I don't like and I want it to stop ..... kind of

        Comment


          Originally posted by Sockpuppet View Post
          Dammit!

          I've been defeated. Someone has broken through this tough bad ass I don't give a damn contractor exterior I project. Found myself with old lady last night grinning like a mother****er for no apparent reason.

          Its scary I don't like and I want it to stop ..... kind of
          You grin like a mother*****r at old ladies?
          The squint, the cocked eye and clenched first are the cornerstones of all Merseyside communication from birth to grave

          Comment


            Originally posted by NickFitz View Post
            I miss BI...
            I miss everyone.

            Just not enough to actually want to come back and post more though.

            Comment


              Originally posted by DS24 View Post
              I miss everyone.

              Just not enough to actually want to come back and post more though.

              What have you done with DS23?

              Comment


                Unemployment 2 %
                Transport 97 %
                Criminality 3 %
                Pollution 4 %

                pop=997, rank=180

                I must think about updating my .sig - we lost an inhabitant looking for a job....

                Comment


                  Originally posted by Sockpuppet View Post
                  Dammit!

                  I've been defeated. Someone has broken through this tough bad ass I don't give a damn contractor exterior I project. Found myself with old lady last night grinning like a mother****er for no apparent reason.

                  Its scary I don't like and I want it to stop ..... kind of
                  You love it - stop whining like a BGB.

                  Comment


                    Originally posted by NickFitz View Post
                    Input:

                    Code:
                    <?xml version="1.0" encoding="UTF-8"?>
                    <field>
                        <furrow implement="plough" implementor="NickFitz" sociability="lonely"/>
                    </field>
                    Transform:

                    Code:
                    <?xml version="1.0" encoding="UTF-8"?>
                    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
                        <xsl:output omit-xml-declaration="yes"/>
                    
                        <xsl:template match="/">
                            <xsl:apply-templates select="field"/>
                        </xsl:template>
                        
                        <xsl:template match="field">
                            <xsl:apply-templates select="furrow"/>
                        </xsl:template>
                        
                        <xsl:template match="furrow">
                            <xsl:text>[</xsl:text>
                            <xsl:value-of select="@implementor"/>
                            <xsl:text> </xsl:text>
                            <xsl:value-of select="@implement"/>
                            <xsl:text>s a </xsl:text>
                            <xsl:value-of select="@sociability"/>
                            <xsl:text> </xsl:text>
                            <xsl:value-of select="name()"/>
                            <xsl:text>]</xsl:text>
                        </xsl:template>
                    
                    </xsl:stylesheet>
                    Output:

                    Code:
                    [NickFitz ploughs a lonely furrow]


                    What I just said, but the implement, implementor and social context are now parameterised as attributes in the XML input


                    NF puts up top quality technical posts even on a BH weekend. We need more of this.

                    Comment


                      Originally posted by NickFitz View Post
                      [NickFitz ploughs a lonely furrow]
                      I am in the next furrow still ploughing.....

                      Comment

                      Working...
                      X