Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Affordable ASP.NET Hosting Service
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  XML Module [Lea...  Print page gizmo not working properly when paramaters are used
Previous Previous
 
Next Next
New Post 7/26/2007 11:28 AM
User is offline Beanie
63 posts
10th Ranked


Print page gizmo not working properly when paramaters are used 

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 3:18 AM
User is offline Stefan Cullmann
1553 posts
5th Ranked








Re: Print page gizmo not working properly when paramaters are used 

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>


Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com
form and List will be the successor of the User Defined Table module.
----------------------------------------------------------------------
Do you want to import external data to form and List /User Defined Table?
Check out http://www.codeplex.com/Csv2UDTImport
 
New Post 8/6/2007 12:07 PM
User is offline Beanie
63 posts
10th Ranked


Re: Print page gizmo not working properly when paramaters are used 

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

 

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  XML Module [Lea...  Print page gizmo not working properly when paramaters are used
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


FREE Skins, Modules & Control Panel!
Choose how much you want to pay on our Skins, Modules, Containers and Control Panel - Starting from FREE!
www.dnngroup.com
Disgrafic
Diseño y creación de portales web dinámicos :: Desarrollo de módulos personalizados :: Soluciones a medida :: Imagen Corporativa :: Tu proveedor DNN en España
www.disgrafic.com
DM Analytics, LLC
DM Analytics, LLC provides software solutions that facilitate rapid development of independent or dependent datamarts and their associated web-based reporting.
www.dmanalytics.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP