axc.xsl
Includes
AspectX Compiler
CVS Id:
axc.xsl 138 2005-07-27 09:14:07Z ibirrer
Author:
ibirrer
Copyright:
2005, P&P Software GmbH
Match Templates Summary
If an unsupported element is encountered, the program aborts and outputs an errror message
Empty template to exclude description and text elements from the XPath creation for pointcuts
ax:pointcut[not(parent::ax:restriction) and ( not(@constraint) or string-length(replace(@constraint, '^[ \t]+|[ \t]+$', '')) = 0 )] (mode: pointcutXPath) - source
element: ax:pointcut
parent: none
constraint: none or empty
ax:pointcut[not(parent::ax:restriction) and @constraint and string-length(replace(@constraint, '^[ \t]+|[ \t]+$', '')) != 0] (mode: pointcutXPath) - source
element: ax:pointcut
parent: none
constraint: yes (not empty)
ax:pointcut[parent::ax:restriction and ( not(@constraint) or string-length(replace(@constraint, '^[ \t]+|[ \t]+$', '')) = 0 )] (mode: pointcutXPath) - source
element: ax:pointcut
parent: yes
constraint: none or empty
ax:pointcut[parent::ax:restriction and @constraint and string-length(replace(@constraint, '^[ \t]+|[ \t]+$', '')) != 0] (mode: pointcutXPath) - source
element: ax:pointcut
parent: yes
constraint: yes (not empty)
A reference to a pointcut is resolved to the corresponding
pointcut
A reference to a pointcut is resolved to the corresponding
pointcut
Removing description elements completely
Replaces variables used in codeModifiers (format: ${VariableName})with the <xsl:value-of .../> equivalent.
Resolve includes
Add apspect attribute to named pointcut elements and pointcutRef elements
Match Templates Detail
If an unsupported element is encountered, the program aborts and outputs an errror message
Empty template to exclude description and text elements from the XPath creation for pointcuts
ax:pointcut[not(parent::ax:restriction) and ( not(@constraint) or string-length(replace(@constraint, '^[ \t]+|[ \t]+$', '')) = 0 )] (mode: pointcutXPath) - source
element: ax:pointcut
parent: none
constraint: none or empty
ax:pointcut[not(parent::ax:restriction) and @constraint and string-length(replace(@constraint, '^[ \t]+|[ \t]+$', '')) != 0] (mode: pointcutXPath) - source
element: ax:pointcut
parent: none
constraint: yes (not empty)
ax:pointcut[parent::ax:restriction and ( not(@constraint) or string-length(replace(@constraint, '^[ \t]+|[ \t]+$', '')) = 0 )] (mode: pointcutXPath) - source
element: ax:pointcut
parent: yes
constraint: none or empty
ax:pointcut[parent::ax:restriction and @constraint and string-length(replace(@constraint, '^[ \t]+|[ \t]+$', '')) != 0] (mode: pointcutXPath) - source
element: ax:pointcut
parent: yes
constraint: yes (not empty)
A reference to a pointcut is resolved to the corresponding
pointcut
This pointcut is then again applied to the templates
taking a pointcut to generate the XPath expression.
A reference to a pointcut is resolved to the corresponding
pointcut
This pointcut is then again applied to the templates
taking a pointcut to generate the XPath expression.
In this case the parent element is a restriction and therefore
the type of the pointcut needs to be output.
Removing description elements completely
Replaces variables used in codeModifiers (format: ${VariableName})with the <xsl:value-of .../> equivalent.
Removing xsl elements
children of xsl elements are processed further.
Resolve includes
Replaces include elements by all contents (pointcuts, advices) of the aspect it refers to.
Add apspect attribute to named pointcut elements and pointcutRef elements
If an aspect attribute already exists
it is not replaces.