Apply the given style over the xml document.
This is how simple is to apply a style (XSLT document) over
an concept or string. Just load or produce the style and content
and invoke Style.applyStyle on them.
$xml = File.create("article.xml")
$style = File.create("article.xsl")
print Style.applyStyle($xml/content, $style/content)
Methods inherited from: Concept
| cloneConcept, extendsConcept, fromXML, getAllInheritedConcepts, getConceptAttribute, getConceptAttributeField, getConceptAttributeFields, getConceptAttributes, getConceptConstructors, getConceptElement, getConceptElementField, getConceptElementFields, getConceptElements, getConceptLabel, getConceptMethod, getConceptMethods, getConceptOperators, getConceptType, getErrorHandler, getInheritedConcepts, getResourceURI, hasConceptAttribute, hasConceptElement, hasConceptMethod, hasPath, isHidden, loadContent, setConceptLabel, setErrorHandler, setHidden, setShowEmpty, showEmpty, toTXT, toXML, setResourceURI |
|
| Parameters: |
| $to : | The string to apply the style. |
| $style : | The style to apply. |
|
| Exceptions: |
transformerConfigException :
(Error) | If unable to apply style on specified document. |
transformerException :
(Error) | If unable to apply style on specified document. |
Applies the given $style to the specified xml and returns the result.
$xml = File.create("article.xml")
$style = File.create("article.xsl")
print Style.applyStyle($xml/content, $style/content)