473,472 Members | 2,224 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Convert a WML document to HTML using Word2HTML.xsl

Hi,

I am trying to convert a very basic WML document to HTML using the
word2HTML.xsl stylesheet. But I get an exception when I am trying to convert
it:

The code looks like this:

XPathDocument xpathdocument = new XPathDocument(docFileName);
XslTransform xslt = new XslTransform();
xslt.Load(stylesheetFileName);
StringWriter writer = new StringWriter();
xslt.Transform(xpathdocument, null, writer, null);
FillWeb(writer.ToString());

The exception is:

Message "Prefix 'wx' is not defined." string
Can anybody see what I am doing wrong

Regards,

Henrik
Nov 12 '05 #1
2 4958
Without seeing the WML document, the stylesheet or information on which line
of code is throwing the exception it is hard to provide you with any useful
information.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Henrik Skak Pedersen" <hs*@circlecapital.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

I am trying to convert a very basic WML document to HTML using the
word2HTML.xsl stylesheet. But I get an exception when I am trying to convert it:

The code looks like this:

XPathDocument xpathdocument = new XPathDocument(docFileName);
XslTransform xslt = new XslTransform();
xslt.Load(stylesheetFileName);
StringWriter writer = new StringWriter();
xslt.Transform(xpathdocument, null, writer, null);
FillWeb(writer.ToString());

The exception is:

Message "Prefix 'wx' is not defined." string
Can anybody see what I am doing wrong

Regards,

Henrik

Nov 12 '05 #2
Hi,

The stylesheet is this:
http://www.microsoft.com/downloads/d...displaylang=en

The WML document is any word document which I save as WML, even the simplest
ones only containing the word "Test". All of them fail with the same error.

Henrik

"Dare Obasanjo [MSFT]" <da***@online.microsoft.com> wrote in message
news:40********@news.microsoft.com...
Without seeing the WML document, the stylesheet or information on which line of code is throwing the exception it is hard to provide you with any useful information.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Henrik Skak Pedersen" <hs*@circlecapital.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

I am trying to convert a very basic WML document to HTML using the
word2HTML.xsl stylesheet. But I get an exception when I am trying to

convert
it:

The code looks like this:

XPathDocument xpathdocument = new XPathDocument(docFileName);
XslTransform xslt = new XslTransform();
xslt.Load(stylesheetFileName);
StringWriter writer = new StringWriter();
xslt.Transform(xpathdocument, null, writer, null);
FillWeb(writer.ToString());

The exception is:

Message "Prefix 'wx' is not defined." string
Can anybody see what I am doing wrong

Regards,

Henrik


Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Closer | last post by:
I am new to XML and XSL, could someone please help? I have my XML and XSL files and can view the XML file with the stylesheet in my browser. Everything is fine. What I want to do is to...
1
by: Matt | last post by:
I want to use XML to store a document's configurations. And I can convert to different file format by using XSL. For example, convert to HTML, PDF, or RTF. But the contents are all stored in single...
0
by: edwaldo | last post by:
Hi I'm using Word.ApplicationClass in C# to produce a Word document: Word.ApplicationClass objWord = new Word.ApplicationClass(); Word.Document objWordDoc = objWord.Documents.Add(ref noValue,...
7
by: Q.Z. | last post by:
Hello, Does anybody know is there a .NET or COM based library to parse HTML or convert html to xml so I can use xpath to parse it? Thanks Qin Zhou
3
by: Chris Davoli | last post by:
I've got a requirement to build a page using MS WORD and then have the page show up on a web site. I know I can do a binary write and open up the WORD document in IE plugin. Don't really want to do...
2
by: csgraham74 | last post by:
Hi, I have a requirement in work that i give a person the ability to create a html document using a richt text editor. What i then want to do is save the HTML doct to my server & insert...
4
by: csgraham74 | last post by:
Hi, Ive posted on this previously but had no response. Basically i need to build some html using a rich text editor. Then i want to actually create an html document from this and save it to my...
0
by: Margy | last post by:
Ben Edgington posted an elegant piece of XSLT to transfrom lists into correct xhtml lists using ul and li tags, rather than the bogus lists that the word2html transform produces. (It's here:...
1
by: eggie5 | last post by:
I want to use element.appendChild(child) on a string of HTML I have: html= '<div> <strong>Text</strong> </div>' However, since it's not an element (ie created with document.createElement)...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.