System.Xml.XmlException: '{' is an unexpected token. The expected token is '"' or '''. Line 26, position 35. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args) at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken(String expectedToken1, String expectedToken2) at System.Xml.XmlTextReaderImpl.ParseAttributes() at System.Xml.XmlTextReaderImpl.ParseElement() at System.Xml.XmlTextReaderImpl.ParseElementContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.Xsl.Xslt.XsltInput.ReadTextNodes() at System.Xml.Xsl.Xslt.XsltInput.ReadNextSibling() at System.Xml.Xsl.Xslt.XsltInput.MoveToFirstChild() at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List`1 content, InstructionFlags flags) at System.Xml.Xsl.Xslt.XsltLoader.LoadLiteralResultElement(Boolean asStylesheet) at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List`1 content, InstructionFlags flags) at System.Xml.Xsl.Xslt.XsltLoader.XslForEach() at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List`1 content, InstructionFlags flags) at System.Xml.Xsl.Xslt.XsltLoader.LoadLiteralResultElement(Boolean asStylesheet) at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List`1 content, InstructionFlags flags) at System.Xml.Xsl.Xslt.XsltLoader.LoadTemplate(NsDecl stylesheetNsList) at System.Xml.Xsl.Xslt.XsltLoader.LoadRealStylesheet() at System.Xml.Xsl.Xslt.XsltLoader.LoadDocument() at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include
i will look at wath yoiu wrote iam not that good in umbraco yet the first time i look at it is lige 13 days agon in class ware we neede to do a projekt. "studining webintegratot @TCAA " but i lowe this system it is so strong. and when instalt on my webserver ia can even program on my mac.
<umbraco:Itemfield="blokTilbudOverskrift"runat="server"/> so that a feils whit name blokTilbudOverskriftTitleText can contain the Title/Alt text for the text It might look lige iam a bit wired, but the projekt is to make a webpage that alle can use even thos who cant se and ther system navigate around on web pages usning title and alt text.... nad by putting at title/alt tag on the test in the blok haeder lets the blinde nowe wath blok it is on
you can learn of lot of things from these starter websites, but also from the documentation in Wiki or the videoes on umbraco.tv , but there's also much useful information in the forum from other users.
You can insert the title of the blok in e.g. a h1 tag.. with a title text on hover.. <h1 title="Title text">Header title</h1> and insert the umbraco items there.. but you could also create the block from xslt with container and content from xslt .. and then just insert the macro in the template.
tooltip In a my xslt filde i use to get my navi..
Hey iam tryning to set a toottip in my xslt i use to my macro to make my navi Dynamic
i have made a Propety name "textSiteLink" that i like to use at the source for the tooltip.
i need it in this part so TOOLTIP is replaset whit wath i need
Can some help me..
Soory for my pore writing in english..
<a class="TopNaviLink" href="{umbraco.library:NiceUrl(@id)}" TOOLTIP >
<xsl:value-of select="@nodeName"/>
</a>
This is my file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
<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"/>
<!-- Input the documenttype you want here -->
<xsl:variable name="level" select="1"/>
<xsl:template match="/">
<!-- The fun starts here -->
<ul>
<li class="li" >
<a class="TopNaviLink" href="velkommen.aspx">Forsiden</a>
</li>
<xsl:for-each select="$currentPage/ancestor-or-self::* [@level=$level]/* [@isDoc and string(umbracoNaviHide) != '2']">
<li class="li" >
<a class="TopNaviLink" href="{umbraco.library:NiceUrl(@id)}" >
<xsl:value-of select="@nodeName"/>
</a>
</li>
</xsl:for-each>
</ul>
</xsl:template>
</xsl:stylesheet>
Hi Michael
The following should work for you:
Cheers
Nigel
Thanks i tryed. but get this error on saving..
Error occured
System.Xml.XmlException: '{' is an unexpected token. The expected token is '"' or '''. Line 26, position 35.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken(String expectedToken1, String expectedToken2)
at System.Xml.XmlTextReaderImpl.ParseAttributes()
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.Xsl.Xslt.XsltInput.ReadTextNodes()
at System.Xml.Xsl.Xslt.XsltInput.ReadNextSibling()
at System.Xml.Xsl.Xslt.XsltInput.MoveToFirstChild()
at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List`1 content, InstructionFlags flags)
at System.Xml.Xsl.Xslt.XsltLoader.LoadLiteralResultElement(Boolean asStylesheet)
at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List`1 content, InstructionFlags flags)
at System.Xml.Xsl.Xslt.XsltLoader.XslForEach()
at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List`1 content, InstructionFlags flags)
at System.Xml.Xsl.Xslt.XsltLoader.LoadLiteralResultElement(Boolean asStylesheet)
at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List`1 content, InstructionFlags flags)
at System.Xml.Xsl.Xslt.XsltLoader.LoadTemplate(NsDecl stylesheetNsList)
at System.Xml.Xsl.Xslt.XsltLoader.LoadRealStylesheet()
at System.Xml.Xsl.Xslt.XsltLoader.LoadDocument()
at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include
and if i remoce the { } tagt it only post the statit text
title="{./textSiteLink}" maybe....
Thanks Mike..
that dit the works
Hi Michael
You could also create a variable for the site title and then use the variable.
Bjarne
Thanks Bjarne.
i will look at wath yoiu wrote iam not that good in umbraco yet the first time i look at it is lige 13 days agon in class ware we neede to do a projekt. "studining webintegratot @TCAA " but i lowe this system it is so strong. and when instalt on my webserver ia can even program on my mac.
The site iam workin on as a class projekt is this one http://kaffebutikken.the-testcenter.dk
Best regardes
Michael
Can the same thin be aplyes til at
<umbraco:Item field="blokTilbudOverskrift" runat="server" />
so that a feils whit name blokTilbudOverskriftTitleText can contain the Title/Alt text for the text
It might look lige iam a bit wired, but the projekt is to make a webpage that alle can use even thos who cant
se and ther system navigate around on web pages usning title and alt text....
nad by putting at title/alt tag on the test in the blok haeder lets the blinde nowe wath blok it is on
Michael
Hi Michael
I think the best way to get into Umbraco is to look at some of the demo starter kits:
http://our.umbraco.org/projects/starter-kits/creative-website-starter-(cws)
http://our.umbraco.org/projects/starter-kits/standard-website
http://our.umbraco.org/projects/starter-kits/basic-website
http://our.umbraco.org/projects/starter-kits/razor-estate-agents-starter-site
you can learn of lot of things from these starter websites, but also from the documentation in Wiki or the videoes on umbraco.tv , but there's also much useful information in the forum from other users.
You can insert the title of the blok in e.g. a h1 tag.. with a title text on hover.. <h1 title="Title text">Header title</h1> and insert the umbraco items there.. but you could also create the block from xslt with container and content from xslt .. and then just insert the macro in the template.
Bjarne
is working on a reply...