Understanding Input Ports

Stylus Studio interprets input ports differently for different XSLT instructions, as shown in Table 56:

XSLT Instruction
Meaning of Input Port
xsl:value-of
 
Used to define the value of the select attribute. For example:
<xsl:value-of select="'Owen'">
xsl:for-each
 
Used to define the XPath expression for the select attribute. For example:
<xsl:for-each select="books/book">
xsl:if
 
Used to define the value of the test attribute. For example:
<xsl:if test="authors/author= 'Henry'">
See xsl:if and xsl:choose to learn more about when to use this instruction.
xsl:choose
 
Used to define the value of the test attribute of the nested xsl:when element. For example:
<xsl:when test="contains(authors/author,'Marchese')">
See xsl:if and xsl:choose to learn more about when to use this instruction.
xsl:apply-templates
 
Used to define the value of the select attribute. For example:
<xsl:apply-templates select="subject"/>
xsl:call-template
 
Used to define the value of the name attribute. For example:
<xsl:call-template name="newAuthorsTemplate"/>
Table 56. XSLT Instruction Blocks in XSLT Mapper

Specifying Values for Input Ports

You can specify values for input ports by:

Red Input Ports

If an xsl: instruction's attribute takes a literal or string value (such as xsl:value-of select="'Recommended'"/, for example) and a value has been provided for the attribute, Stylus Studio fills the input port associated with that attribute with a deep red to indicate that a value has been specified.

Stylus Studio Lends a Helping Hand to the New Orleans Reconstruction Efforts

Read how Stylus Studio is helping with the on-going hurricane Katrina reconstruction efforts in New Orleans.

Simple API for XML (SAX)

SAX stands for Simple API for XML - SAX is an XML standard used everywhere in Stylus Studio, for parsing and building representations of XML documents.

EAI - Enterprise Application Integration

Using EAI tools included with Stylus Studio it's easy to unlock silos of enterprise data and seamlessly integrate it into your IT applications.

XML Schema Library

The Stylus Studio XML Schema Library provides a detailed reference of many of the world's most commonly used XML vocabularies in an easy-to-read format.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member