a Ankur
on

 

Dear All,

This is my first time here and first time creating Define.xml. I was able to create whole Define.xml output without any issue using stylesheet and cascaded stylesheet provided by FDA. But moving forward, I encountered the issue of wrapping in Origin column. For my current study, I have a huge CRF with more then 200 pages and when I mentioned the CRF pages in the origin section they are appearing like this in the define.xml output: CRF Page 1,2,3,4,5,6,7,8,9,10,11 etc.; this makes my Define.xml output to be wider and looks odd for the variable whose origin is assigned DERIVED. 

To get rid of the above output and to make my output look like the one below:

CRF Page 1,2,

3,4,5,6,7

8,9,10 etc.; I made changes to .xsl (stylesheet) by changing the option nowrap to wrap as shown below but my output still shown like this: 

CRF Page

1,2,3,4,5,6,7,8,9,10 which still left me with wide output of Define.xml. Please advise if anyone has encountered this issue and how they fixed it.

 

<td style="white-space:wrap;">
- <xsl:choose>
- <xsl:when test="contains($itemDef/@Origin,'CRF Pages')">
  <xsl:value-of select="substring-before($itemDef/@Origin,'CRF Pages ')" />
  <xsl:text>CRF Pages</xsl:text>
- <xsl:call-template name="crfpage">
  <xsl:with-param name="pages" select="concat(substring-after($itemDef/@Origin,'CRF Pages '),',')" />
  </xsl:call-template>
  </xsl:when>
- <xsl:when test="contains($itemDef/@Origin,'CRF Page ')">
  <xsl:value-of select="substring-before($itemDef/@Origin,'CRF Page ')" />
  <xsl:text>CRF Page</xsl:text>
- <xsl:call-template name="crfpage">
  <xsl:with-param name="pages" select="concat(substring-after($itemDef/@Origin,'CRF Page '),',')" />
  </xsl:call-template>
  </xsl:when>
- <xsl:otherwise>
  <xsl:value-of select="$itemDef/@Origin" />
   
  </xsl:otherwise>
  </xsl:choose> 
 </td>
Thanks,
Ankur

 

Forums: Define.xml

l Lex
on May 8, 2012

You need not only commas between your numbers in the rendered HTML, but also blanks.
Otherwise there is nothing to wrap.

Btw, this is neither a CDISC, XML or XSLT question, but HTML.
I'm also surprised that you say the FDA provided the stylesheet.

a Ankur
on May 8, 2012

Thanks for the reply. As you said blanks were required and I created blanks where wrapping was required and it worked fine. My apologies, stylesheet was not provided by FDA but from CDISC. I was in a rush while writing this issues and ended up saying FDA.

Apologies.

Thanks for the reply,

Regards

Ankur

Want a demo?

Let’s Talk.

We're eager to share and ready to listen.

Cookie Policy

Pinnacle 21 uses cookies to make our site easier for you to use. By continuing to use this website, you agree to our use of cookies. For more info visit our Privacy Policy.