Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • hetaurhet 245 posts 267 karma points
    Jul 04, 2011 @ 14:41
    hetaurhet
    0

    xslt save error

    I have created the xslt as follows... for one slider..... which is as follows

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
    <xsl:stylesheet
      version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:msxml="urn:schemas-microsoft-com:xslt"
      xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:tagsLib="urn:tagsLib" xmlns:BlogLibrary="urn:BlogLibrary"
      exclude-result-prefixes="msxml  umbraco.library  Exslt.ExsltCommon

    Exslt.ExsltDatesAndTimes  Exslt.ExsltMath  Exslt.ExsltRegularExpressions
    Exslt.ExsltStrings  Exslt.ExsltSets  tagsLib BlogLibrary "
    >

    <xsl:output method="xml" omit-xml-declaration="yes"/>

    <xsl:param name="currentPage"/>

    <xsl:template match="/">
     
     <!-- start writing XSLT
       <xsl:variable name="sliderNode" select="$currentPage/parent::*/child::*[@level=1]"/>-->
       
     <xsl:variable name="sliderNode" select="$currentPage/ancestor-or-self::root/*[@nodeName='estrosliderforhome']"/>
       
      <div class="peKenBurns" data-logo="disabled" >
         
           <xsl:for-each select="$sliderNode/child::estro">
            
            <div data-delay="5" data-thumb="{thumb}">
                      <img src="images/blank.png" data-src="{umbracoFile}" alt="Banner Image 1" />
                      <h1><xsl:value-of select="teaserText" disable-output-escaping="yes"/></h1>
              </div>
            
              
            
           </xsl:for-each>
       
     </div>

    </xsl:template>

    </xsl:stylesheet>

    But while saving it is showing "Xslt file could not be saved" error. so whats the problem?

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Jul 04, 2011 @ 15:56
    Dirk De Grave
    0

    Hi,

    Don't see any problem with the code, what error message are you getting, is there any detailed error message? Or is it just the speech bubble saying so...

     

    Cheers,

    /Dirk

  • hetaurhet 245 posts 267 karma points
    Jul 08, 2011 @ 12:23
    hetaurhet
    0

    no, there is no detailed error message. but the purpose for which I use this xslt.. shows proper result. .. .so I think i will just save it.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies