|
Home > Online Product Documentation > Table of Contents > Frequently Asked Questions About XSLT Frequently Asked Questions About XSLTHow can I use quoted strings inside an attribute value?
If you need to include a quoted string inside an attribute value (in a
How do I choose when to use xsl:for-each and when to use xsl:apply-templates?
The way
With
Finding a template by matching requires more time than using the contained template. However, matching allows for more flexibility. Also, matching lets you avoid repeating templates that might be used in more than one place in a stylesheet.
Named templates are another option for invoking a template from more than one place in a stylesheet, when you know which template you want. It is a common mistake to use (and bear the overhead of) matching when it is not needed. But it allows you to do powerful things. Matching can take into account the following:
Most complex document-formatting stylesheets use
How can I insert JavaScript in my result document? If you want your result document to contain JavaScript commands, you must properly escape the JavaScript code. Use the following format in your XSLT template:
However, this method does not work when your JavaScript section contains a block of XSLT code. In this case, enclosing the JavaScript in a
In this situation, enclose the entity reference within an
You can use this wherever an entity reference needs to be handled specifically, as opposed to being handled as part of an entire JavaScript section. My browser does not understand the tag <br/>. How can I output just <br>? Although your XSLT stylesheet must contain valid XML (meaning all tags must be either empty or have a closing element), you can instruct the XSLT processor to generate output compliant with HTML. See Deleting Templates.
Alternative: To ensure that your stylesheet always generates correct HTML, specify the
|
XML Differencing
Stylus Studio's integrated XML Differencing tool visually computes and analyzes any changes made to files or folders in a highly configurable, XML-aware fashion. Display text or tree views, with changes displayed in a merged view or side-by-side!
Deltek Adds XML Support to Advanced ERP, Financial and HR applications with Stylus Studio
Learn how Deltek uses Stylus Studio to build ERP, financial, HR, and project management applications for the professional services industry and large government systems integrators.
Xerces - Parsing and Validating XML with the Apache Xerces Parser
The Xerces Parser supports the XML 1.0 recommendation and W3C's XML Schema recommendation version 1.0, DOM and SAX. Learn how easy it is to use Apache Xerces directly in Stylus Studio to parse and validate XML with ease.
EDIFACT Reference
The EDIFACT Reference is a free developer resource providing the most in-depth information on EDIFACT constructs and data models.


