473,626 Members | 3,245 Online
Bytes | Software Development & Data Engineering Community
+ 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(d ocFileName);
XslTransform xslt = new XslTransform();
xslt.Load(style sheetFileName);
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 4987
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*@circlecapi tal.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.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(d ocFileName);
XslTransform xslt = new XslTransform();
xslt.Load(style sheetFileName);
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.m icrosoft.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*@circlecapi tal.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.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(d ocFileName);
XslTransform xslt = new XslTransform();
xslt.Load(style sheetFileName);
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
8670
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 convert this to an HTML document and when the user looks at the source they see HTML instead of XML (which is the current source and extention). I want to accomplish this on the client side, I tried using the following in an HTML file but again the...
1
1869
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 XML file. Are they any documentation management tools/web site that help people do that? please help. thanks!!
0
1264
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, ref noValue, ref noValue, ref noValue); objWordDoc.Activate(); I then get the data from the database and load it into
7
1683
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
4643
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 this because it displays in the word editor. What I'm looking for is a way to upload the WORD document to the server (I know how to do this using the HTML Upload control) then take the WORD document and run it thru some kind of converter class...
2
4588
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 reference in a database so that i can retrieve the html document. Basically i dont have a clue how to convert a string in HTML format (taken from the RTE) to an actual document and then save it to a folder. Can anyone point me in the correct direction.
4
4462
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 server. Does anyone have any examples on how to do this ?? I dont really understand how to get from HTML string to HTML document. I can probably work out how to save this. do i create an html object ??
0
1234
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: http://www.thescripts.com/forum/thread86303.html .) Has anyone spliced his idea into the word2html transform so that it produces proper lists? I'm an xslt newbie, so I'm hesitant to start with this! Margy <myoung IN THE NEIGHBORHOOD OF uua.org>
1
10658
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) I can't use appendChild with my html string.
0
8269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8203
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8711
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8512
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6125
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5576
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4094
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1515
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.