Copied to clipboard

Flag this post as spam?

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


  • ma quayle 6 posts 26 karma points
    Feb 24, 2012 @ 19:42
    ma quayle
    0

    New to umbraco need help

    If there was a forum for newbies, i would post there.

    I am trying to run an xslt file (via macro) to generate buttons on a page.  The html form I for the search was provided by the application vendor.

    <form id='sso' method='post' action='https://review.min-ns.net:51103/HIEWebClient/Patients.mvc.aspx/Results' >
                                            <input name="searchType" type="hidden" value="Local" />
                                            <input name="SearchMode" type="hidden" value="1" />
                                            <input name="name" type="hidden" value="Patient_Name" />
                                            <input name="dob" type="hidden" value="Patient_DOB" />
                                            <input name="submit" id="searchHIE" type="submit" value="Search HIE Community Documents for "  />     <xsl:value-of select="Patient_Name"/>
                                        </form> 

     

    I am using it in xslt as:

    <?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"
        exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets">

    <xsl:output method="xml" omit-xml-declaration="yes"/>
    <xsl:param name="currentPage"/>
    <xsl:template match="/">
      <xsl:variable name="assignmentsFile" select="http://staging.min-ns.org/staging_demo/ReviewLinks.xml" />
        <xsl:variable name="assignments" select="umbraco.library:GetXmlDocumentByUrl('href=$assignmentsFile')" />
     <ul>    
    <xsl:for-each select="$assignments/reviewer">
          <li><form id='sso' method='post' action='https://review.min-ns.net:51103/HIEWebClient/Patients.mvc.aspx/Results' >
                            <input name="searchType" type="hidden" value="Local" />
                            <input name="SearchMode" type="hidden" value="1" />
                            <input name="name" type="hidden" value="Patient_Name" />
                            <input name="dob" type="hidden" value="Patient_DOB" />
                            <input name="submit" id="searchHIE" type="submit" value="@Patient_Name"  />   <xsl:value-of select="Patient_Name"/>
                        </form>       
          <xsl:value-of select="Patient_DOB" />     <xsl:value-of select="Demo_username" /></li>
        </xsl:for-each>
      </ul>
    </xsl:template>
    </xsl:stylesheet>

    and getting the following error (syntax, I believe):

    Error occured

    System.Xml.Xsl.XslLoadException: Expected end of the expression, found ':'.
    http -->:<-- //staging.min-ns.org/staging_dem... An error occurred at F:\Websites\dev.min-ns.net\httpdocs\xslt\634656758225270990_temp.xslt(19,3).
    at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
    at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)

    The path to the xml is OK.  Can anyone give me direction?

    Thanks in advance.

    maq

  • ma quayle 6 posts 26 karma points
    Feb 24, 2012 @ 19:49
    ma quayle
    0

    Sorry, I got my syntax corrected, just couldn;t see it.

    Is there a better way to accomplish this?

    maq

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Feb 25, 2012 @ 23:37
    Thomas Höhler
    0

    try

    <xsl:variable name="assignments" select="umbraco.library:GetXmlDocumentByUrl('http://staging.min-ns.org/staging_demo/ReviewLinks.xml')" />

    hth, Thomas

  • 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