Copied to clipboard

Flag this post as spam?

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


  • dave 10 posts 30 karma points
    Jun 24, 2012 @ 22:01
    dave
    0

    umbraco 4.7.2 umbraco.presentation build error inlinexslt

    Hi.

    this is my first little bash with umbraco and i have the source code, however i get strange build errors:

    Error 11 Character '{', hexadecimal value 0x7b is illegal in an XML name. D:\Chrome Downloads\umbraco-4.7.2.-source\umbraco_a7dae59a1e55\umbraco\presentation\umbraco\templateControls\InlineXslt.xsltTemplate 7 45 umbraco.presentation

    this in-turn causes problems with:  umbraco.presentation.templateControls.ItemeRenderer:
    <code>
    // add the XSLT expression into the full XSLT document, together with the needed parameters
                    string xslt = string.Format(Resources.InlineXsltTemplate, xpathExpression, disableEscaping ? "yes" : "no",
                                                                      namespaceList, namespaceDeclaractions);
    </code>
    this class wont build into the project, diue the the xslt template being invalid.
    I am sure i am just missing some kind of references or something here, but i have sorted quite a few build erros so far, but this one has me really stumped.
    thanks

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Jun 24, 2012 @ 22:07
    Chriztian Steinmeier
    0

    Hi dave,

    I have no idea what you're actually trying, but the errormessage tells me that the code is using a { inside the name of an element or attribute, which is not valid per spec.

    Maybe you're missing some characters somewhere?

    Can you post more of the actual code producing this?

    /Chriztian

  • dave 10 posts 30 karma points
    Jun 24, 2012 @ 22:11
    dave
    0

    hi, yes this is the source, NOT MINE  (umbracos )

    its in umbraco source code :

    <?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"{3}
    exclude-result-prefixes="msxml umbraco.library {2}">
    <xsl:output method="xml" omit-xml-declaration="yes"/>
    <xsl:param name="currentPage"/>
    <xsl:param name="itemData"/>
    <xsl:template match="/"><xsl:value-of select="{0}" disable-output-escaping="{1}"/></xsl:template>
    </xsl:stylesheet>
    It's located in umbraco.presentation project  >  umbraco > TemplateControls > InlineXslt.XsltTemplate
     
    thanks for the quick response
  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Jun 24, 2012 @ 22:21
    Chriztian Steinmeier
    0

    Ok, so the error is perfectly valid IF an XSLT processor were trying to parse the XSLT file - but it's never meant to, 'coz those are placeholders for the .NET string.Format() method, to produce a stylesheet that *then* would be parsed by an XSLT processor ...

    Are you saying you're just trying to build Umbraco from the source? If so, you'll probably get more qualified answers in the Core forum, I think...

    /Chriztian

  • dave 10 posts 30 karma points
    Jun 24, 2012 @ 22:30
    dave
    0

    Yes, i know what they are for,   an it also makes invalid code, but this is not my stuff, this is actually what the developers at Umbraco have created.  I am simple just trying to change a few missing references to see if i can fix ubootstrap latest to use the MVC helpers class.

    But if you think its best, i will ask in the core forum.

     

    thanks

Please Sign in or register to post replies

Write your reply to:

Draft