User Profile
Collapse
-
stephen1313 started a topic Why do my XML and XSLT files work fine in editor, but not in Firefox or Explorer?in XMLWhy do my XML and XSLT files work fine in editor, but not in Firefox or Explorer?
I have an XML file that I am using an xslt file against to format output (HTML).
In the editor (stylus studio) it works fine, but when I run it in the IE browser I get:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
The stylesheet does not contain a document element. The stylesheet may be empty, or it... -
stephen1313 started a topic Is there a tool that will take my XML file and create an XSLT file for me?in XMLIs there a tool that will take my XML file and create an XSLT file for me?
I have a big XML file and I need an XSLT file to output to HTML.
Is there an inference tool that will do that?
If not, is any one interested in helping a newbie create an XSLT file?
Thanks -
Thanks for your help.
I think I am close to having this done.
Here is my code now:
...Code:<?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="letter"> <xs:complexType> <xs:attribute name="date" type="xs:string"/>
Last edited by jkmyoung; Sep 21 '10, 06:02 PM.Leave a comment:
-
Editing the XML file is not an option. I have to make my XSD file conform to the XML.
I did move the date attribute as you instructed.
I am still getting this error:
Ln 6 Col 56 - s4s-elt-must-match.1: The content of 'letter' must match (annotation?, (simpleType | complexType)?, (unique | key | keyref)*)). A problem was found starting at: attribute.
Would I be better off using ANY rather than complexType?Leave a comment:
-
Here is an update for those of you helping me out:
I have updated my code to the following:
...Code:<?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="letter"> <xs:attribute name="date" type="xs:normalizedString"/>
Last edited by jkmyoung; Sep 17 '10, 06:49 PM.Leave a comment:
-
Ok, here is my code now:...Code:<?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="letter"> <xs:complexType> <xs:sequence> <xs:element name="to" type="xs:normalizednormalizedString"/>
Last edited by jkmyoung; Sep 17 '10, 06:48 PM.Leave a comment:
-
Thanks for your reply.
Here is what I have now.
My XSD file:...Code:<?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="letter"> <xs:complexType> <xs:sequence> <xs:element name="to" type="xs:normalizednormalizedString"/>
Last edited by jkmyoung; Sep 17 '10, 06:48 PM.Leave a comment:
-
Issues writing XSD file
Learning XML and need some help.
I have am xml file and I have want to create an xsd file for it.
I have written my file, but am experiencing errors when trying to validate the xml to my xsd.
Any pointing in the right direction you can give would be appreciated.
XML file:
...Code:<?xml version="1.0"?> <letter date="2005/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
No activity results to display
Show More
Leave a comment: