I mentioned below my xml file, xml contains many inner style tags(Please use generic xslt code to extract all the text) but it should extract all text after innertag and text before start the innertag.
<?xml version="1.0" encoding="UTF-8"?>
<Values>
<Value AttributeID="11218">
<Text>WGP03068-CNZH-00
<style name="bold">Introduction of the Title</style>xslt
<style name="TextStyle1">
The smallest font size for which kerning should be automatically adjusted.
</style>
<style name="bold">Reference for this book
<style name="TextStyle1">
The smallest font size for which kerning should be automatically adjusted.
</style>
Hope you had a good learning experience.
</style>
I am expecting more solution for my doughts.
</Text>
</Value>
</Values>
My XSLT code is mentioned Below :
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<HTML>
<xsl:apply-templates />
</HTML>
</xsl:template>
<xsl:template match="Values">
<xsl:for-each select="Value">
<xsl:for-each select="Text">
<p>
<xsl:for-each select="style">
<xsl:value-of select="." />
</xsl:for-each>
</p>
</xsl:for-each>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
My XSLT is missing starting text and ending text of element it reads only element, I want to read all outside and innertag text and add my own styles(like bold,Italic, font name and color)
I am expecting OUTPUT like below :
WGP03068-CNZH-00 Introduction of the Title xslt The smallest font size for which kerning should be automatically adjusted. Reference for this book The smallest font size for which kerning should be automatically adjusted.Hope you had a good learning experience. I am expecting more solution for my doughts.