Hello all:
I am now reading the book "Implementing CDISC Using SAS" by Holland and Shostak to learn CDISC implementation. Chapter 2 showed an example of creating define.xml from excel spreadsheet in base SAS. The authors provided SAS code/output & stylesheet on the book site
https://support.sas.com/en/books/authors/chris-holland.html
The sample directory for chapter 2 includes define.xml and define2-0-0.xsl. However, the main output define.xml cannot be properly rendered. Microsoft edge and Chrome displayed an empty page. Firefox displayed contents in define.xml without the proper format.
Interestingly, it was properly shown in internet explorer, which retires soon.
So I suppose something in the define.xml is not supported by modern browser? Does anyone know what the problem is and how to fix it?
This makes me worry about learning CDISC implementation in SAS with this book. Are there any other good (and more recent) references/resources?
Thanks,
Peter
How about first showing the LOG of the code that you submitted that created the output with all the notes and messages generated. Copy the text from the LOG and paste into a text box opened on the forum with the </>. That way we have a chance of knowing what you did.
XML not rendering in Excel can be a setting issue as I had to spend a moderate amount of time getting Excel to show XML as data after our "upgrade" to Office 365 as Excel did not want want to use XML files as data by default.
"PROC XSL can be limited"
Could you explain some details about the limitations? What should we pay attention to if we want to use PROC XSL?
One thing that I ran into is that PROC XSL does not work well, when your stylesheet imports other stylesheets. If I remember well, it had issues resolving relative paths that were used for including other stylesheets.
Hi Lex,
Thanks for your explanation and will note this in daily work; Currently our project would merely use the official released stylesheet and it workd well, likes below:
proc xsl
in="&define_sdtm_root.define_SDTM.xml"
xsl="&define_sdtm_root.define2-1-0.xsl"
out="&define_sdtm_root.define_SDTM.html";
run;
I understand that in some cases, we may need to modify the stylesheet, but I'm not sure about the situation you mentioned, "stylesheet imports other stylesheets".
Are you referring including another stylesheet inside the current stylesheet? I don't quite understand why this is done. Could you introduce a bit about it, or are there any papers that introduce this work.
Thank you!
When you want to create a modular design, it is quite common to import stylesheets (xsl:import). PROC XSL does not support that.
An extended example of this is how the SAS Clinical Standards Toolkit implemented transformations:
Thank you Lex, it's truly enlightening, I will explore more details in this area.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Need courses to help you with SAS Life Sciences Analytics Framework, SAS Health Cohort Builder, or other topics? Check out the Health and Life Sciences learning path for all of the offerings.