12.07.2015 Views

Using Zen Reports - InterSystems Documentation

Using Zen Reports - InterSystems Documentation

Using Zen Reports - InterSystems Documentation

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

EMBEDXSLA user can override the current DEFAULTMODE setting for the report class by providing a$MODE parameter in the URI when invoking the <strong>Zen</strong> report from a browser. Basic informationabout $MODE appears at the beginning of the chapter “<strong>Zen</strong> <strong>Reports</strong> from a Web Browser.”For details, also see “The $MODE Query Parameter” in the chapter “Troubleshooting <strong>Zen</strong><strong>Reports</strong>.”A stylesheet parameter. When EMBEDXSL=1 (true) <strong>Zen</strong> generates XSL instructionsembedded within the output XHTML. The default for EMBEDXSL is 0 (false). In this case<strong>Zen</strong> generates a separate XSL file.Embedding the XSL instructions brings up the issue of uniqueness for XML elements in theoutput file. The default namespace http://www.w3.org/1999/xhtml cannot be thenamespace for all the generated XML elements if the generated XML and XSLT are combinedin a single HTTP response. To ensure fully qualified XML names, <strong>InterSystems</strong> recommendswhen you set EMBEDXSL=1 you also provide a namespace name and prefix by providingvalues for REPORTXMLNAMESPACE and REPORTXMLNAMESPACEPREFIX in the<strong>Zen</strong> report class, for example:Parameter EMBEDXSL=1;Parameter REPORTXMLNAMESPACE="http://www.example.com";Parameter REPORTXMLNAMESPACEPREFIX="SR";Then the generated XML looks like the following example and the XSLT is updated to workwith this XML:2005-01-20Yoyomo Inc.2005-01-20XenaData.comYou can omit the REPORTXMLNAMESPACE or REPORTXMLNAMESPACEPREFIXparameters from the <strong>Zen</strong> report class. When EMBEDXSL=1 and these parameters are notset, they default as follows:http://www.intersytems.com/mydefaultnamespacemy<strong>Zen</strong> Report Class Parameters<strong>Using</strong> <strong>Zen</strong> <strong>Reports</strong> 15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!