By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,317 Members | 2,360 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,317 IT Pros & Developers. It's quick & easy.

Convert a WML document to HTML using Word2HTML.xsl

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.