How to bold a specific text XSLT
Hello,
Here is my XML code:
<code>
<?xml version="1.0" encoding="utf-16"?>
<Message>
<ItemTypeGroup Id="0" Name="All Attributes">
<Statements Id="13" Name="Allergen Tag Format">
<Statement Id="102">Bold</Statement>
</Statements>
<TaggedLongTextItems Id="177" Name="Ingredients">
<Text xml:space="preserve">The Ingredients of the product</Text>
<Text xml:space="preserve">Milk Chocolate</Text>
<Text xml:space="preserve">Sugar</Text>
<Text xml:space="preserve">Vegetable Oil</Text>
<Text xml:space="preserve">Wheat Flour</Text>
<Text xml:space="preserve">Hazelnuts (10.8%)</Text>
<Text xml:space="preserve">Skimmed Milk Powder</Text>
<Text xml:space="preserve">Whole Milk Powder</Text>
<Text xml:space="preserve">Vanillin</Text>
<Text xml:space="preserve">Total Milk Solids: 19.5%</Text>
<Tags>
<Tag TextIndex="1" StartIndex="0" Length="4" TagTypeId="1" TagType="Allergen As On Pack" />
<Tag TextIndex="4" StartIndex="0" Length="11" TagTypeId="1" TagType="Allergen As On Pack" />
</Tags>
</TaggedLongTextItems>
</ItemTypeGroup>
</Message>
</code>
My question is: I need to transform it in XSLT and to display all the ingredients but for the tag with index 1 (Milk Chocolate) started with index 0 for a length of 4 to be applied the style bold present in the Statements /Statement Id = 102. The same for the second one.
Please can you help me?
Thank you very much!
|