Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsXMLXMLPrint page gizmo not working properly when paramaters are usedPrint page gizmo not working properly when paramaters are used
Previous
 
Next
New Post
7/26/2007 1:28 PM
 

In the XML/XSL module I have XML parameters as well as XSL paramaters, when I have the checkbox that allows printing it does what's expected with one hitch...The parameters are not being passed as well and thus cause all sorts of havoc with the XML/XSL module.

In the mean time I decided to try and just do my own print thing.

I copied the exact URL that is utilized to allow a printer friendly page and plopped it in to the XSL  with the following code:

 <xsl:element name="a">
  <xsl:attribute name="href">
    http://www.douglasesd.k12.or.us/Visitors/HumanResources/JobListings/JobDescription/tabid/911/mid/1266/dnnprintmode/true/Default.aspx?SkinSrc=%5bG%5dSkins%2f_default%2fNo+Skin&ContainerSrc=%5bG%5dContainers%2f_default%2fNo+Container&amp;jobID=<xsl:value-of select=".//jobID"/>
  </xsl:attribute>
  <xsl:attribute name="target">
   _blank
  </xsl:attribute>
  Printer Friendly
 </xsl:element>

And then I get a lovely error message in the event log, and the other problem is that the URL is hardcoded because there's no module id paramater in the XML module, only Tab ID and such(but I think I have a solution for that, and that's to add a static parameter with the module ID that needs to be passed):

Message: DotNetNuke.Services.Exceptions.ModuleLoadException: XSLT compile error. ---> System.Xml.Xsl.XslLoadException: XSLT compile error. An error occurred at (130,192). ---> System.Xml.XmlException: '=' is an unexpected token. The expected token is ';'. Line 130, position 192. 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.HandleEntityReference(Boolean isInAttributeValue, EntityExpandType expandType, Int32& charRefEndPos) at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars) at System.Xml.XmlTextReaderImpl.ParseText() at System.Xml.XmlTextReaderImpl.ParseElementContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlTextReader.Read() at System.Xml.Xsl.Xslt.XsltInput.ReadNextSiblingHelper() 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.XslAttribute() at System.Xml.Xsl.Xslt.XsltLoader.LoadInstructions(List`1 content, InstructionFlags flags) at System.Xml.Xsl.Xslt.XsltLoader.XslElement() 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) --- End of inner exception stack trace --- at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include) at System.Xml.Xsl.Xslt.XsltLoader.Load(Compiler compiler, Object stylesheet, XmlResolver xmlResolver) at System.Xml.Xsl.Xslt.Compiler.Compile(Object stylesheet, XmlResolver xmlResolver, QilExpression& qil) at System.Xml.Xsl.XslCompiledTransform.CompileToQil(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver) at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver) at System.Xml.Xsl.XslCompiledTransform.Load(XmlReader stylesheet, XsltSettings settings, XmlResolver stylesheetResolver) at DotNetNuke.Modules.XML.Utils.GetXSLContent(String ContentURL) at DotNetNuke.Modules.XML.XmlController.GetXslTransform() at DotNetNuke.Modules.XML.XmlController.Render(TextWriter output) at DotNetNuke.Modules.XML.XmlModule.Render(HtmlTextWriter output) --- End of inner exception stack trace ---

If anybody has some ideas as to what I can do to correct this I'ld love to read 'em.

 
New Post
8/5/2007 5:18 AM
 

Douglas,I 'am going to add ModuleId as parameter.

In the mean time, I suggest to simplify your xsl statement to

< a href="http ://yourlink...jobid={//jobID}" target="_blank">Printer Friendly</a>

 
New Post
8/6/2007 2:07 PM
 

Thanks for the suggestion, and thanks for adding the moduleID to the mix. :)

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsXMLXMLPrint page gizmo not working properly when paramaters are usedPrint page gizmo not working properly when paramaters are used


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out