10

Related to SDL Tridion - Storage:

Is there an XML Schema (XSD) definition (or other detailed documentation) for the cd_storage.xml and storage bundle xml files, including lists of valid nodes and values for node attributes? The best I could find so far is SDL Live Content, which is not exactly exhaustive.

If it exists already, could someone point me to the right place? If not, can this be considered a polite request for it to be created?!

Many thanks!

4 Answers 4

9

From your installation files, look in ..\Content Delivery\resources\schemas - You will find cd_storage_conf.xsd and cd_storage_dao_bundle.xsd.

I generally add this (and all the other Tridion CD Schemas) as a Schema References in Visual Studio, it really helps when editing config files, and can help rapidly solve configuration issues.

Update for Tridion 8.5:

xsd's have moved into each microservice e.g. ..\SDL Web 8.5\Content Delivery\roles\discovery\standalone\config\schemas

3
  • Thanks (nod also to @siva-charan) for the tip on where to find the schema documents - it had completely slipped mind! Now, as to documentation on valid / accepted values for nodes and attributes, any ideas?
    – Tristan CW
    Commented Jun 24, 2013 at 23:39
  • The schema, sample configs and the docs (LiveContent) are your only source for attributes I am afraid. Is there something particular you are looking for? Commented Jun 25, 2013 at 1:27
  • Yes, but I'll post that as a separate question so that it can answered in its own right.
    – Tristan CW
    Commented Jun 25, 2013 at 13:53
5

The one you provided SDLLIVEContent link is the best one. The document explains all the possible nodes and attributes which needs to be taken care for Configuring content storage cd_storage_conf.xml

If you really wants to know the location of XSD, it is available

Under Content Delivery Installation --> Resources --> Schemas --> cd_storage_conf.xsd

2

You can refer the

Content Delivery Installation --> Resources --> configurations-->cd_storage_conf_sample.xml

there are good comments in the Sample files for storage & deployer config. e.g in deployer XSD there is no mention of Phase="post-transaction" (in my problem i was searching for the possible values in XSD but could not found), but sample file do have. so referring both can help you to document.

3
  • One correction Phase="post-transaction" is only related to Deployer config and not with Storage Config, I hope you mean to say that only Commented Jun 25, 2013 at 7:03
  • yes, i know that, check again, deployer is already mentioned in the start :)
    – Raj Kumar
    Commented Jun 25, 2013 at 7:46
  • The question is not asking for Deployer but for Storage only :) Commented Jun 25, 2013 at 7:49
2

For configuration of storage layer in cd_storage_conf.xml you can collectively make use of the SDL Live Content links as stated in your question along with the sample storage config file where a descriptive comment has been added for almost all the nodes.

Related to Storage Bundle xml files, you may want to explore the Storage Extension related topics given HERE and HERE (Requires Login).

In brief, Storage DAO Bundle xml file is generally used for extending the default functionality of Storage Layer of the Content Delivery module.

Typically, the content of a storage dao bundle file will look like as below:

<?xml version="1.0" encoding="UTF-8"?>
<StorageDAOBundles>
    <StorageDAOBundle type="<Which type of storage layer>">
          <StorageDAO typeMapping="<Which Action>"
                 class="Fully resolved custom storage layer extension class name" />
     </StorageDAOBundle>
</StorageDAOBundles>

For example:

  1. For a Dynamic Component Presentation you want to invoke the Storage Extension at Publishing Action, the Storage DAO Bundle will looks as below:

    <?xml version="1.0" encoding="UTF-8"?>
    <StorageDAOBundles>
        <StorageDAOBundle type="persistence">
            <StorageDAO typeMapping="PublishAction"
                class="com.tridion.storage.extension.custom.JPAPublishActionDAO" />
            </StorageDAOBundle>
    </StorageDAOBundles>
    
  2. If you want to invoke Storage Extension while publishing a page, the Storage DAO Bundle will looks as below:

    <?xml version="1.0" encoding="UTF-8"?>
    <StorageDAOBundles>
        <StorageDAOBundle type="filesystem">
            <StorageDAO typeMapping="Page"
                class="com.tridion.storage.extension.custom.FSPagePublishActionDAO" />
            </StorageDAOBundle>
    </StorageDAOBundles>
    

I hope it helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.