I'm new to XSL. Looking here I found the FXSL library that could help solve my problem but I don't know how to go about it.
I have an XML similar to the following one. The application runs an XSL with some external parameters. Within the XML there are some keywords with special meanings:
- {MY_EXT_PAR} : it refers to an external parameter named MY_EXT_PAR.
- {1}, {2}, ... : they refer to external parameters named PAR1, PAR2, ...
- @LINK1(key1), @LINK2(key1,key2) : they are links to a link tag that returns a value (description) related to the given keys. Many links can be defined with a varying number of keys.
- There should be some keywords to format the text (eg. \n for carriage return).
Sample XML input:
<Links>
<Link>
<Name>LINK1</Name>
<Element>
<Key>
<Value>1</Value>
</Key>
<Description>Description1</Description>
</Element>
<Element>
<Key>
<Value>4</Value>
</Key>
<Description>Description2</Description>
</Element>
</Link>
<Link>
<Name>LINK2</Name>
<Element>
<Key>
<Value>125</Value>
<Value>68</Value>
</Key>
<Description>Description3</Description>
</Element>
</Link>
</Links>
<Codes>
<Code>
<Description>Connect to external param {MY_EXT_PAR}.\nParameter 1 value is {1} that is @LINK2({2},{3})\n. Parameter 4 value is {4} that is @LINK1({4}).</Description>
</Code>
</Codes>
Are there some examples for this?