XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
B DSubject: Error creating XSLT from HTML.
Author: B D
Date: 28 Feb 2007 01:36 PM
I have an XML file that I have generated a DTD with Stylus Studio. When I point the XML file to the DTD as an external DTD, the parsers tell me that it is a valid XML and SS tells me that its well formed. I close the XML file.

For my next step, I use the Document Wizard to create a XSLT from HTML.

The stylesheet statement looks like this:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

When I select the XML file (same as the one above) to use WYSIWYG, SS modifies the above statement to look like this:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xml="undefined_uri0" exclude-result-prefixes="xml">

From this point on when I try to modify via or even switch back to the WYSIWYG, I get the following error:

"XML2HTML WYSIWYG encounter an error:

The prefix 'xml' cannot be bound to any namespace other than its usual namespace.
URL: file:///c:/src/xsl/myfile.xsl
Line: 2
Col: 137"

Any suggestions, pointers, hints, tips, etc?

Postnext
Tony LavinioSubject: Error creating XSLT from HTML.
Author: Tony Lavinio
Date: 01 Mar 2007 08:55 AM
WYSIWYG is based on Internet Explorer.
We send the XSLT over into the IE DOM, and sometimes, IE
sends it back with strange modifications.

Remove xmlns:xml="undefined_uri0" exclude-result-prefixes="xml"
from your XSLT and you should be okay. (This is an assumption;
not seeing all of your XSLT makes it hard to know for sure, but
try this first.)

Postnext
B DSubject: Error creating XSLT from HTML.
Author: B D
Date: 01 Mar 2007 09:46 AM
Thanks Tony.

I have tried deleting it and saving the file.

But if I switch back to WYSIWYG and make a modification, it is reinserted.

This problem basically makes WYSIWYG feature useless for me if I have keep deleting these attributes.

Posttop
Tony LavinioSubject: Error creating XSLT from HTML.
Author: Tony Lavinio
Date: 01 Mar 2007 09:54 AM
Unfortunately, we agree.

WYSIWYG is going away, because we can't control what happens inside
of IE and it changes version by version.

Starting in Stylus Studio 2007, the new XML Report tool is more useful
in that it lets you generate XSLT 1, XSLT 2 or XQuery, and the final
output can be HTML+CSS or XSL:FO-->PDF.

And in Stylus Studio 2007 Release 2, due shortly, it will have even
greater capabilities.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.