Advanced Customization > Business Logic Customization > Report Generation > Customization Details > Customizing the Report Output Format > XML Resource Bundles
  
XML Resource Bundles
One aspect of the provided XSLT stylesheets is that they use XML resource bundles for localization of text. Rather than producing different versions of each XSLT stylesheet for each locale, the locale-dependent text has been extracted into separate XML files. These are loosely referred to as XML resource bundles, and are retrieved and searched through XSLT based on the locale.
This approach was taken for the following reasons:
To allow ease of localization by using the same technology, syntax, and tools as those behind XSLT and HTML authoring; that is, XML.
To allow a tighter coupling between XSLT stylesheets and their localization data. Because relative URLs are used to look up XML resource bundles, they can be installed relative to the XSLT files that reference them, rather than relative to the Windchill codebase.
To allow localization without dependence on XSLT extension functions.
The XML resource bundles used by the provided XSLT stylesheets are located at <Windchill codebase>/templates/reports/defReportRB_*.xml.
If you decide to use this technique in your own XSLT stylesheets, see the XML resource bundles provided and the XSLT files provided for usage examples. Keep in mind the following issues:
XML resource bundles must be well-formed XML. For further information, refer to XML.com’s annotated XML specification, currently available at the following URL: http://www.xml.com/pub/axml/axmlintro.html
* 
If you have difficulty with this URL, try the site URL www.xml.com.
The W3C unannotated, original version of the XML specification is currently available at the following URL: http://www.w3.org/TR/REC-xml
* 
If you have difficulty with this URL, try the site URL www.w3.org.
The encoding listed in the <?xml ...?> header should match that actually used when saving the file and should be one supported by the XML parser used (Xerxes 1.2.2). For example, on Windows NT, you can use the Save as Unicode option in NotePad and specify an encoding of "unicode" in the XML resource bundle.