XML Xlate error

  • Creator
    Topic
  • #48031
    Antonio Chennawi
    Participant

    I need your help. Do you know why I am getting this Xlate error.

    I am sending the error, the Xlate and the xsd for your pleasure.

    thank you.

    $ hcixlttest -L -n -d 1 -f len10 xml_MFN_M02.xlt /hci/data/antonio/mso1      

    MESSAGE 1

    [0:TEST] Message encode warnings: Error generated during parsing. – Element ‘FirstName’ is not valid for content model: ‘(Physic

    ianID,Active,FirstName,LastName,Address,PrimaryPhone,CellPhone,Fax,PrimaryEmail,SecondaryEmail,Specialty)’ – Line 1, Col 301

    Output validation warnings: Error generated during parsing. – Element ‘FirstName’ is not valid for content model: ‘(PhysicianID,

    Active,FirstName,LastName,Address,PrimaryPhone,CellPhone,Fax,PrimaryEmail,SecondaryEmail,Specialty)’ – Line 1, Col 301

    [0:TEST] Error generated during parsing. – Element ‘FirstName’ is not valid for content model: ‘(PhysicianID,Active,FirstName,La

    stName,Address,PrimaryPhone,CellPhone,Fax,PrimaryEmail,SecondaryEmail,Specialty)’ – Line 1, Col 346

    Checking for leaked handles…

    Xlate:

    prologue

       xlt_infile: hl7 2.3 MSO MFN

       who:        anchenna

       date:       August 26, 2005 2:22:41 PM CDT

       xlt_outfile:        xml v2.4-200401-xsd urn$hl7-org$v2xml$PhysicianRecordType.file

       type:       xlt

       version:    5.0

    end_prologue

    { { OP COPY }

       { ERR 0 }

       { IN {{1(0).STF.00673.[0]}} }

       { OUT hl7:PhysicianRecordType~file.FirstName.0.hl7:XPN~10.0.hl7:DR~1.0.hl7:TS~1.#text }

    }

    http://www.w3.org/2001/XMLSchema

    xmlns=”urn:hl7-org:v2xml”

     xmlns:hl7=”urn:hl7-org:v2xml”

    targetNamespace=”urn:hl7-org:v2xml”>

           

           

                   

                           

                   

           

           

                   

                           

                   

           

       

       

       

     

     

       

         Staff Name

         

           673

           XPN

           Staff Name

         

       

       

         

           

         

       

     

           

           

                   

                           

                           

                           

                           

                           

                   

           

           

           

                   

                           

                   

           

           

           

                   

                           

                   

           

           

           

                   

                           

                           

                   

           

           

           

                   

                           

                   

           

           

           

                   

                           

                     

                   

           

           

           

                   

                           

                           

                   

           

           

           

                   

                           

                   

           

           

                   

                           

                           

                           

                           

                           

                           

                           

                           

                           

                           

                           

                   

           

           

Viewing 2 reply threads
  • Author
    Replies
    • #57405
      Femina Jaffer
      Participant

      Did you ever get this to work?  The reason I ask, I am getting a similar type of error and thought you might have found the resolution?

      Thanks

      fj

    • #57406
      Antonio Chennawi
      Participant

      Hi,

      The XSD file should be formatted like this: (please see the wrong format from my previous posting)

      http://www.w3.org/2001/XMLSchema“>

             

             

                     

                             

                             

                             

                             

                             

                             

                             

                             

                             

                             

                     

             

             

             

                     

                             

                     

             

             

                     

                             

                     

             

             

             

                     

                             

                     

             

             

             

                     

                             

                             

                             

                             

                             

                     

             

             

             

                     

                             

                     

             

             

             

                     

                             

                     

             

             

             

                     

                             

                             

                     

             

             

             

                     

                             

                             

                     

             

             

                     

                             

                     

             

             

                     

                             

                             

                     

             

             

             

                     

                             

                     

             

             

    • #57407
      Femina Jaffer
      Participant

      Thank you.  We did figure out that our format was slightly incorrect.

      Thank you.

      fj

Viewing 2 reply threads
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,292
Replies
34,432
Topic Tags
286
Empty Topic Tags
10