# Generating Define XML using community version

**URL:** <https://forum.certara.com/t/generating-define-xml-using-community-version/716>\
**Category:** Define.xml\
**Created:** [January 20, 2015, 7:58pm UTC](https://forum.certara.com/t/generating-define-xml-using-community-version/716 "2015-01-20T19:58:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergiy](https://sea1.discourse-cdn.com/certara/user_avatar/forum.certara.com/sergiy/32/2553_2.png) [@Sergiy](https://forum.certara.com/u/Sergiy)\
**Post date:** [January 20, 2015, 10:11pm UTC](https://forum.certara.com/t/generating-define-xml-using-community-version/716/1 "2015-01-20T22:11:25Z")

</div>

Hi Jatin,

Are you using a stylesheet for define.xml v2.0?

Thanks,

Sergiy

---

<div class="post-metadata">

**Author:** ![jatinpatel](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jatinpatel](https://forum.certara.com/u/jatinpatel)\
**Post date:** [January 21, 2015, 5:20pm UTC](https://forum.certara.com/t/generating-define-xml-using-community-version/716/2 "2015-01-21T17:20:37Z")

</div>

Hi Sergiy,

I am using define2-0-0.xsl stylesheet which is came with define package.

Thanks

Jatin

---

<div class="post-metadata">

**Author:** ![Sergiy](https://sea1.discourse-cdn.com/certara/user_avatar/forum.certara.com/sergiy/32/2553_2.png) [@Sergiy](https://forum.certara.com/u/Sergiy)\
**Post date:** [January 21, 2015, 5:22pm UTC](https://forum.certara.com/t/generating-define-xml-using-community-version/716/3 "2015-01-21T17:22:18Z")

</div>

Could you send me a sample of your excel files?

Thanks,

Sergiy

sergiy at opencdisc dot org

---

<div class="post-metadata">

**Author:** ![jatinpatel](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jatinpatel](https://forum.certara.com/u/jatinpatel)\
**Post date:** [January 21, 2015, 5:39pm UTC](https://forum.certara.com/t/generating-define-xml-using-community-version/716/4 "2015-01-21T17:39:15Z")

</div>

Hi Sergiy, I did send excel file and define to your attention. Thanks Jatin

---

<div class="post-metadata">

**Author:** ![Sergiy](https://sea1.discourse-cdn.com/certara/user_avatar/forum.certara.com/sergiy/32/2553_2.png) [@Sergiy](https://forum.certara.com/u/Sergiy)\
**Post date:** [January 21, 2015, 6:40pm UTC](https://forum.certara.com/t/generating-define-xml-using-community-version/716/5 "2015-01-21T18:40:00Z")

</div>

Hi Jatin,

Links to CRF pages are generated by a define.xml stylesheet. The commonly used stylesheet provided in CDISC define.xml v2.0 package works only with one pre-defined Href attribute value for aCRF. It should be “ **blankcrf.pdf** ”.

Also ID should be “ **blankcrf** ”. It’s a hardcoded aCRF ID for Origin in OpenCDISC define.xml generator.

Otherwise CRF Page links will not be populated.

You need to correct Href value for aCRFs in Documents tab of your specifications.

|   
  
**ID**  
  
 |   
  
**Title**  
  
 |   
  
**Href**  
  
 |
| --- | --- | --- |
|   
  
blankcrf  
  
 |   
  
Annotated Case Report Form  
  
 |   
  
blankcrf.pdf  
  
 |

Thank you,

Sergiy

---

<div class="post-metadata">

**Author:** ![lexjansen](https://avatars.discourse-cdn.com/v4/letter/l/cc9497/32.png) [@lexjansen](https://forum.certara.com/u/lexjansen)\
**Post date:** [January 21, 2015, 9:55pm UTC](https://forum.certara.com/t/generating-define-xml-using-community-version/716/6 "2015-01-21T21:55:28Z")

</div>

Hi Sergiy,

You are right, that for Define-XML v1 the filename (blankcrf.pdf) was hard-coded in the stylesheet, since there was no metadata connecting the Origin to the annotated CRF document. In Define-XML v2 however, the filename is in the metadata (through def:Origin/def:DocumentRef) and the stylesheet does not make any assumptions for the annotated CRF filename.

Best,

Lex

---

<div class="post-metadata">

**Author:** ![jatinpatel](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jatinpatel](https://forum.certara.com/u/jatinpatel)\
**Post date:** [January 20, 2015, 7:58pm UTC](https://forum.certara.com/t/generating-define-xml-using-community-version/716/7 "2015-01-20T19:58:05Z")

</div>

We have an encountered an issue when creating define.xml using OpenCDISC community 2.0. Page numbers are not being displayed in the define.xml, albeit the specs do reflect the page numbers. We have modified the specs that is generated from the XPTs by adding Origin, Page Numbers etc., we have loaded the specs to generate the define, but the page numbers are not populating. Can you please let us know if there is any bug with the current version of the OpenCDISC community 2.0. Your input this is greatly appreciated.
