BookmarkSubscribeRSS Feed
Peter_Y
Calcite | Level 5

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. 

Peter_Y_0-1653612268723.png

Interestingly, it was properly shown in internet explorer, which retires soon. 

Peter_Y_1-1653612950798.png

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

3 REPLIES 3
ballardw
Super User

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.

Ksharp
Super User
I got the same problem as yours . I think it is not problem from code of book, it is about browser Microsoft edge or Chrome themselves.

The best way to create define.xml is using the software  Pinnacle 21 . It is totall free or You can buy SAS software to generate define.xml
https://www.pinnacle21.com/downloads

And here is my data step code for define.xml
https://communities.sas.com/t5/SAS-Communities-Library/Create-Define-xml-file-by-data-step/ta-p/7204...
lexjansen
Fluorite | Level 6
It is not a problem with the XML. The fact that Chrome and Edge do not render the Define-XML file is because of security issues. No modern browser allows the rendition of XML by applying an XSL file within the browser. Internet Explorer was the only browser that still allowed it. But, as you mention, IE has long been abandoned by Microsoft, and soon will be end-of-life. You can use PROC XSL in SAS to create an HTML file from the XML and the stylesheet that can be opened by any browser. PROC XSL can be limited, so here is another solution to create HTML: https://swhume.github.io/blog-2022-generate-html-from-xml.html

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

New Learning Events in April

 

Join us for two new fee-based courses: Administrative Healthcare Data and SAS via Live Web Monday-Thursday, April 24-27 from 1:00 to 4:30 PM ET each day. And Administrative Healthcare Data and SAS: Hands-On Programming Workshop via Live Web on Friday, April 28 from 9:00 AM to 5:00 PM ET.

LEARN MORE

Discussion stats
  • 3 replies
  • 2149 views
  • 2 likes
  • 4 in conversation