User Profile

Collapse

Profile Sidebar

Collapse
stephen1313
stephen1313
Last Activity: Nov 10 '10, 11:13 PM
Joined: Sep 15 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Try: http://www.personal.psu.edu/sll917/
    See more | Go to post

    Leave a comment:


  • Why 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...
    See more | Go to post

  • Is 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
    See more | Go to post

  • stephen1313
    replied to Issues writing XSD file
    in XML
    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"/>
    ...
    See more | Go to post
    Last edited by jkmyoung; Sep 21 '10, 06:02 PM.

    Leave a comment:


  • stephen1313
    replied to Issues writing XSD file
    in XML
    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?
    See more | Go to post

    Leave a comment:


  • stephen1313
    replied to Issues writing XSD file
    in XML
    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"/>
    ...
    See more | Go to post
    Last edited by jkmyoung; Sep 17 '10, 06:49 PM.

    Leave a comment:


  • stephen1313
    replied to Issues writing XSD file
    in XML
    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"/>
    ...
    See more | Go to post
    Last edited by jkmyoung; Sep 17 '10, 06:48 PM.

    Leave a comment:


  • stephen1313
    replied to Issues writing XSD file
    in XML
    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"/>
    ...
    See more | Go to post
    Last edited by jkmyoung; Sep 17 '10, 06:48 PM.

    Leave a comment:


  • stephen1313
    started a topic Issues writing XSD file
    in XML

    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"
    ...
    See more | Go to post
    Last edited by jkmyoung; Sep 17 '10, 01:31 PM. Reason: code tags
No activity results to display
Show More
Working...