Mastro |
Newbie |
|
Tampa, FL |
|
|
None Specified |
|
Wednesday, September 17, 2008 |
Wednesday, September 17, 2008 6:34:27 PM |
3 [0.02% of all post / 0.00 posts per day] |
|
Trying to figure out how to use XMLSpy and StyleVision to take an XHTML file that I have, and I also have the final XML that I want of it, and create the XSL file from it. Is that possible? Then take this XSL file and use it to create XML documents from other XHTML sources of the same structure and also a word document.
Is this possible?
|
Ok I started a brand new SPS document and left it empty, and genereated XSLT file and I still get the error.
|
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
|
|