Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8914423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:42:54+00:00 2026-06-15T04:42:54+00:00

We’re in the process of upgrading an application that’s currently used to import content

  • 0

We’re in the process of upgrading an application that’s currently used to import content from a 3rd party system into Tridion. The current CMS is Tridion 2009 and the new instance will be Tridion 2011 SP1 HR1.

The challenge we’ve come across is that we can’t get a Complex Schema to validate. I’ve included a working example (working in 2009 that is) below and this validates in SDL Tridion 2009. However, when I try to create this same schema through the CME in Tridion 2011 I get an error when I select ‘Validate’ indicating that

The value for the ‘ref’ attribute is invalid = ‘xlink:href’ is an
invalid value for the ‘ref’ attribute.

I’ve spent some time reading around (this is a hand-me-down complex schema with considerable content already being pressed against it!) and believe? that we can’t just stick in a name and type (or define this ‘global’ parameter locally somehow – and if we could – wouldn’t this be ‘not so good‘ practice?. I believe this can be resolved updating the XML (from xml problem with <attribute ref="…">) but this is something we are unable to amend.

Any comments/pointers would be splendid!
Thanks

<xs:schema targetNamespace="http://www.ccc.com/tridion/pelements" elementFormDefault="qualified" xmlns:tcm="http://www.tridion.com/ContentManager/5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:tcmapi="http://www.tridion.com/ContentManager/5.0/TCMAPI" xmlns="http://www.ccc.com/tridion/pelements" xmlns:mstns="http://tempuri.org/XMLSchema.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="cm_lnk.xsd"/>
    <!--maps to DITA element: xref -->
    <xs:element name="link" type="reference"/>
  <xs:complexType name="reference">
    <xs:sequence>
      <xs:element name="title" minOccurs="1" maxOccurs="1" type="xs:string"/>
      <xs:choice>
        <xs:element name="internal">
          <xs:complexType>
            <xs:attribute ref="xlink:href" use="required"/>
            <xs:attribute ref="xlink:title" use="optional"/>
          </xs:complexType>
        </xs:element>
        <xs:element name="external">
          <xs:complexType>
            <xs:attribute name="href" use="required"/>
          </xs:complexType>
        </xs:element>
      </xs:choice>
      <xs:element name="text" minOccurs="0" maxOccurs="1" type="xs:string"/>
    </xs:sequence>
    <xs:attribute name="type" type="referenceType" use="required"/>
  </xs:complexType>
  <!-- ******************** Enumerations ************************** -->
  <xs:simpleType name="referenceType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="normal"/>
      <xs:enumeration value="binary"/>
      <xs:enumeration value="embedded"/>
      <xs:enumeration value="reusable"/>
      <xs:enumeration value="component"/>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>

UPDATE:
To be able to continue, we made a change to the xsd schema:

<xs:attribute ref="xlink:href" use="required"/>
<xs:attribute ref="xlink:title" use="optional"/>

to

<xs:attribute name="href" type="xs:anyURI" use="required"/>
<xs:attribute name="title" type="xs:string" use="optional"/>

This actually comes from the cm_lnk.xsd from the 2011 version.
The ref should actually be a reference to the xlink:href attribute, so this might still be incorrect – anyone aware of any pitfalls with this change we might test/watch for?

UPDATE (from CS)
CS have stated they will look into this with R&D and appear to have agreed it was a valid schema in 2009 and now it’s not valid in 2011. The ticket’s been closed but it will be interesting to follow this up and see if this is resolved in 2013 or accepted as a different approach?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T04:42:55+00:00Added an answer on June 15, 2026 at 4:42 am

    Using

    <xs:attribute name="href" type="xs:anyURI" use="required"/>
    <xs:attribute name="title" type="xs:string" use="optional"/>
    

    instead of

    <xs:attribute ref="xlink:href" use="required"/>
    <xs:attribute ref="xlink:title" use="optional"/>
    

    Is perfectly fine, as you were intending to refer to the cm_lnk.xsd anyways, it just means that if the cm_lnk.xsd would ever change you should also change your schema accordingly. But this is just in theory, since the cm_lnk.xsd schema will never change its definition.

    More interesting is that you mention this did work in the 2009 version, which is indicating that the 2011 release doesn’t seem to be able to handle your import

    <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="cm_lnk.xsd"/>
    

    So as Dominic already mentioned, I would indeed raise a CS ticket for this so it can be looked at. Your workaround is perfectly valid, but it’s always good to report defects allowing them to be fixed in a future release.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently running into a problem where an element is coming back from
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I used javascript for loading a picture on my website depending on which small
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.