IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: Mastro
About
User Name: Mastro
Forum Rank: Newbie
Real Name:
Location Tampa, FL
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Wednesday, September 17, 2008
Last Visit: Wednesday, September 17, 2008 6:34:27 PM
Number of Posts: 3
[0.02% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: How do I use Altova product to generate XSL from XHTML to make XML and Word doc?
Posted: Wednesday, September 17, 2008 6:13:32 PM
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?
Topic: Generated an XSLT, but .Net giving me error: Expected token ')', found ','.
Posted: Wednesday, September 17, 2008 5:17:59 PM
Ok I started a brand new SPS document and left it empty, and genereated XSLT file and I still get the error.
Topic: Generated an XSLT, but .Net giving me error: Expected token ')', found ','.
Posted: Wednesday, September 17, 2008 3:34:34 PM
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

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.