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&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.