|
Rank: Newbie
Joined: 9/17/2008 Posts: 3 Location: Tampa, FL
|
I generated a XSLT-RTF file based off a small testing design. In preview window for HTML and RTF it looks fine...
But when I combine the same XML file with this XSLT file.. I get an error in the XSLT and not sure what I need to change, or if anyone else has had this problem.
and it only happens if I use the one generated from StyleVision.
Exception Details: System.Xml.Xsl.XslTransformException: Expected token ')', found ','.
Any thoughts?
Edit:
This is my .net code of how I combine the two.. It errors on the Error Line:
Code: Dim xmlDoc As XmlDocument Dim xslTran As XslCompiledTransform Dim root As XmlElement Dim nav As XPathNavigator Dim writer As XmlTextWriter
xmlDoc = SPLDoc
'Load the XSLT for Transformation xslTran = New XslCompiledTransform() xslTran.Load("C:\XMLToPLRDoc.xslt")
'Determine the Root object in the XML root = xmlDoc.DocumentElement
'Create the XPath Navigator to navigate throuth the XML nav = root.CreateNavigator()
'Create the RTF by Transforming the XML and XSLT writer = New XmlTextWriter("C:\SPL.rtf", System.Text.Encoding.Default) ERROR LINE: xslTran.Transform(nav, writer) writer.close
|
|
Rank: Newbie
Joined: 9/17/2008 Posts: 3 Location: Tampa, FL
|
Ok I started a brand new SPS document and left it empty, and genereated XSLT file and I still get the error.
|
|
Rank: Advanced Member
Joined: 7/17/2008 Posts: 185 Location: Minutiae, Triviality
|
XSLT out of StyleVision is XSLT 2:
<xsl:stylesheet version="2.0"
System.Xml.XslTransform is XSLT 1:
...System.Xml.Xsl.XslTransform supports the XSLT 1.0 syntax...
(from http://www.xml.com/pub/a/2002/08/14/dotnetxslt.html)
r
|
|
Rank: Newbie
Joined: 10/7/2008 Posts: 1
|
I generated a XSLT-RTF file using XSLT 1 and got the same error. As the mater fact only the xslt-html works for me in the .NET application with both XSLT 1 and 2. Anything else gives me the same error. I install the SAXON software which suports the XSLT 2 but still get the same error. Any help is greatly appreciated. Thank you.
|
|
guest |