Namespace ins XSL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael.Ruehling@t-online.de

    Namespace ins XSL

    Hi,
    I know I'm a little OT but there seems no other group for it.
    So, I am new to XSL/XML and the sample code
    shown in a book doesn't seem to work (Error-Msg:


    Stylesheet must start either with an 'xsl:stylesheet ' or an
    'xsl:transform' element, or with a literal result element that has an
    'xsl:version' attribute, where prefix 'xsl' denotes the
    'http://www.w3.org/1999/XSL/Transform' namespace.

    From Microsoft XML-Editor 2007
    where Code is:



    <xsl:styleshe et version="1.0"
    xmlns:xsl="http ://www.w3c.org/1999/XSL/Transform">
    <xsl:output method="html"/>
    <xsl:template match="BUCH">
    <xsl:for-each select="KAPITEL ">
    <H1>
    <xsl:value-of select="UEBERSC HRIFT"/>
    </H1>
    <H3>
    <xsl:value-of select="ZWISCHE NUEBERSCHRIFT"/>
    </H3>
    <P>
    <xsl:value-of selct="TEXT"/>
    </P>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>

    can anyone help me out?

    thanx
    M.
  • Bjoern Hoehrmann

    #2
    Re: Namespace ins XSL

    * Michael.Ruehlin g@t-online.de wrote in comp.text.xml:
    >Stylesheet must start either with an 'xsl:stylesheet ' or an
    >'xsl:transform ' element, or with a literal result element that has an
    >'xsl:version ' attribute, where prefix 'xsl' denotes the
    >'http://www.w3.org/1999/XSL/Transform' namespace.
    ^^
    ><xsl:styleshee t version="1.0"
    >xmlns:xsl="htt p://www.w3c.org/1999/XSL/Transform">
    ^^^

    You have "w3c" but you need to have "w3".
    --
    Björn Höhrmann · mailto:bjoern@h oehrmann.de · http://bjoern.hoehrmann.de
    Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
    68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/

    Comment

    • Johannes Koch

      #3
      Re: Namespace ins XSL

      Michael.Ruehlin g@t-online.de schrieb:
      Hi,
      I know I'm a little OT but there seems no other group for it.
      So, I am new to XSL/XML and the sample code
      shown in a book doesn't seem to work (Error-Msg:
      >
      >
      Stylesheet must start either with an 'xsl:stylesheet ' or an
      'xsl:transform' element, or with a literal result element that has an
      'xsl:version' attribute, where prefix 'xsl' denotes the
      'http://www.w3.org/1999/XSL/Transform' namespace.
      >
      From Microsoft XML-Editor 2007
      where Code is:
      >
      >
      >
      <xsl:styleshe et version="1.0"
      xmlns:xsl="http ://www.w3c.org/1999/XSL/Transform">
      Is there any white space preceding the code?
      --
      Johannes Koch
      In te domine speravi; non confundar in aeternum.
      (Te Deum, 4th cent.)

      Comment

      • Ken Starks

        #4
        Re: Namespace ins XSL

        Bjoern Hoehrmann wrote:
        * Michael.Ruehlin g@t-online.de wrote in comp.text.xml:
        >Stylesheet must start either with an 'xsl:stylesheet ' or an
        >'xsl:transform ' element, or with a literal result element that has an
        >'xsl:version ' attribute, where prefix 'xsl' denotes the
        >'http://www.w3.org/1999/XSL/Transform' namespace.
        ^^
        >
        ><xsl:styleshee t version="1.0"
        >xmlns:xsl="htt p://www.w3c.org/1999/XSL/Transform">
        ^^^
        >
        You have "w3c" but you need to have "w3".
        and you have another typo, select spelled wrong, further down.

        Comment

        • Michael.Ruehling@t-online.de

          #5
          Re: Namespace ins XSL

          Hi,
          okay I see that. And now it works fine. Thanx a lot.



          M.

          On Wed, 28 May 2008 11:39:47 +0200, Bjoern Hoehrmann
          <bjoern@hoehrma nn.dewrote:
          >* Michael.Ruehlin g@t-online.de wrote in comp.text.xml:
          >>Stylesheet must start either with an 'xsl:stylesheet ' or an
          >>'xsl:transfor m' element, or with a literal result element that has an
          >>'xsl:versio n' attribute, where prefix 'xsl' denotes the
          >>'http://www.w3.org/1999/XSL/Transform' namespace.
          ^^
          >
          >><xsl:styleshe et version="1.0"
          >>xmlns:xsl="ht tp://www.w3c.org/1999/XSL/Transform">
          ^^^
          >
          >You have "w3c" but you need to have "w3".

          Comment

          • Michael.Ruehling@t-online.de

            #6
            Re: Namespace ins XSL

            Hi,
            no, there's no white-space preceding the code.

            M.
            On Wed, 28 May 2008 11:41:04 +0200, Johannes Koch
            <koch@w3develop ment.dewrote:
            >Michael.Ruehli ng@t-online.de schrieb:
            >Hi,
            >I know I'm a little OT but there seems no other group for it.
            >So, I am new to XSL/XML and the sample code
            >shown in a book doesn't seem to work (Error-Msg:
            >>
            >>
            >Stylesheet must start either with an 'xsl:stylesheet ' or an
            >'xsl:transform ' element, or with a literal result element that has an
            >'xsl:version ' attribute, where prefix 'xsl' denotes the
            >'http://www.w3.org/1999/XSL/Transform' namespace.
            >>
            >From Microsoft XML-Editor 2007
            >where Code is:
            >>
            >>
            >>
            ><xsl:styleshee t version="1.0"
            >xmlns:xsl="htt p://www.w3c.org/1999/XSL/Transform">
            >
            >Is there any white space preceding the code?

            Comment

            Working...