Groups | Blog | Home
all groups > dotnet xml > may 2004 >

dotnet xml : Convert a WML document to HTML using Word2HTML.xsl


Dare Obasanjo [MSFT]
5/26/2004 2:18:55 PM
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.

[quoted text, click to view]

Henrik Skak Pedersen
5/26/2004 6:44:42 PM
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

Henrik Skak Pedersen
5/27/2004 9:34:38 AM
Hi,

The stylesheet is this:
http://www.microsoft.com/downloads/details.aspx?FamilyId=D5DCF263-8E19-4054-B599-70371B6CC2B4&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

[quoted text, click to view]

AddThis Social Bookmark Button