ouput of XSLT

  • Please help!!!!

    What is the output of running the above XSLT against the XML and why?

    <?xml version="1.0"?>

    <test:root xmlns:test="http://elsevier.com/test">

        <test:foo>Some text</test:foo>

    </test:root>

    <?xml version='1.0'?>

    <xsl:stylesheet version="1.0"

        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

        xmlns:bar="http://elsevier.com/test"

        xmlns:test="http://elsevier.com/bar">

    <xsl:template match="/">

       <xsl:apply-templates/>

    </xsl:template>

    <xsl:template match="test:root">

        <html>

            <body>   

    <xsl:apply-templates/>

            </body>

        </html>

    </xsl:template>

    <xsl:template match="bar:root">

        <bar>

             <xsl:apply-templates/>

          </bar>

    </xsl:template>

    <xsl:template match="test:foo">

        <xsl:text>Hello</xsl:text>

    </xsl:template>

    <xsl:template match="bar:foo">

        <xsl:text>Goodbye</xsl:text>

    </xsl:template>

    </xsl:stylesheet>

     

  • Your question is too vague. What do you want to know ?

    I've just answered your other post at http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=21&messageid=260920 regarding xpath and that, like this, look more than a little like homework/coursework questions.

  • "Goodbye"

    You figure out why, Vijay. noggin is right. you're obviously just gettting your homework done..

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply