Click here to Skip to main content
15,887,350 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Questionxpath during xsl transfomation Pin
Savas Cilve27-Oct-06 4:24
Savas Cilve27-Oct-06 4:24 
AnswerRe: xpath during xsl transfomation Pin
led mike27-Oct-06 5:16
led mike27-Oct-06 5:16 
QuestionRe: xpath during xsl transfomation Pin
Savas Cilve27-Oct-06 5:19
Savas Cilve27-Oct-06 5:19 
AnswerRe: xpath during xsl transfomation Pin
led mike27-Oct-06 5:45
led mike27-Oct-06 5:45 
AnswerRe: xpath during xsl transfomation Pin
Dustin Metzgar27-Oct-06 8:05
Dustin Metzgar27-Oct-06 8:05 
GeneralRe: xpath during xsl transfomation Pin
Savas Cilve30-Oct-06 1:15
Savas Cilve30-Oct-06 1:15 
GeneralRe: xpath during xsl transfomation Pin
Dustin Metzgar1-Nov-06 5:16
Dustin Metzgar1-Nov-06 5:16 
GeneralRe: xpath during xsl transfomation Pin
Savas Cilve1-Nov-06 5:28
Savas Cilve1-Nov-06 5:28 
<w:tc>
<w:tcPr>
<w:tcW w:w="1476" w:type="dxa"/>
</w:tcPr>
<w:p>
<w:pPr>
<w:rPr>
<w:rFonts w:ascii="Arial" w:h-ansi="Arial" w:cs="Arial"/>
<wx:font wx:val="Arial"/>
<w:sz w:val="18"/>
<w:sz-cs w:val="18"/>
</w:rPr>
</w:pPr>
<xsl:variable name="value">
<xsl:call-template name="replace-string">
<xsl:with-param name="text">
<xsl:call-template name="replace-string">
<xsl:with-param name="text">
<xsl:call-template name="replace-string">
<xsl:with-param name="text">
<xsl:value-of select="obj:ClientName"/>
</xsl:with-param>
<xsl:with-param name="replace">[H]</xsl:with-param>
<xsl:with-param name="with">&lt;b&gt;&lt;i&gt;</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="replace">[/H]</xsl:with-param>
<xsl:with-param name="with">&lt;/i&gt;&lt;/b&gt;</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="replace">&amp;</xsl:with-param>
<xsl:with-param name="with">&amp;amp;</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:apply-templates select="msxsl:node-set(elu:StringToDom($value,'true'))/*" mode="dynamic-formatting"/>
</w:p>
</w:tc>

this is the font-name declaration and template calling part..


<xsl:template name="replace-string">
<xsl:param name="text"/>
<xsl:param name="replace"/>
<xsl:param name="with"/>
<xsl:choose>
<xsl:when test="contains($text,$replace)">
<xsl:value-of select="substring-before($text,$replace)"/>
<xsl:value-of select="$with"/>
<xsl:call-template name="replace-string">
<xsl:with-param name="text" select="substring-after($text,$replace)"/>
<xsl:with-param name="replace" select="$replace"/>
<xsl:with-param name="with" select="$with"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$text"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

and this is the template.. Thanks...


Savas
GeneralRe: xpath during xsl transfomation Pin
Dustin Metzgar1-Nov-06 10:32
Dustin Metzgar1-Nov-06 10:32 
QuestionIgnore whitespace problem while reading XML file Pin
biglewy26-Oct-06 1:22
biglewy26-Oct-06 1:22 
AnswerRe: Ignore whitespace problem while reading XML file Pin
led mike26-Oct-06 9:12
led mike26-Oct-06 9:12 
AnswerRe: Ignore whitespace problem while reading XML file Pin
Michael Dunn26-Oct-06 16:16
sitebuilderMichael Dunn26-Oct-06 16:16 
GeneralRe: Ignore whitespace problem while reading XML file Pin
biglewy26-Oct-06 20:12
biglewy26-Oct-06 20:12 
GeneralRe: Ignore whitespace problem while reading XML file Pin
led mike27-Oct-06 6:36
led mike27-Oct-06 6:36 
GeneralRe: Ignore whitespace problem while reading XML file Pin
Dustin Metzgar27-Oct-06 8:03
Dustin Metzgar27-Oct-06 8:03 
QuestionSchema for "Element or List of Elements" Pin
peterchen25-Oct-06 6:06
peterchen25-Oct-06 6:06 
AnswerRe: Schema for "Element or List of Elements" Pin
led mike25-Oct-06 8:58
led mike25-Oct-06 8:58 
GeneralRe: Schema for "Element or List of Elements" Pin
peterchen25-Oct-06 9:15
peterchen25-Oct-06 9:15 
GeneralRe: Schema for "Element or List of Elements" Pin
Michael Dunn25-Oct-06 9:30
sitebuilderMichael Dunn25-Oct-06 9:30 
AnswerRe: Schema for "Element or List of Elements" Pin
BoneSoft27-Oct-06 10:29
BoneSoft27-Oct-06 10:29 
GeneralRe: Schema for "Element or List of Elements" Pin
peterchen27-Oct-06 12:06
peterchen27-Oct-06 12:06 
AnswerRe: Schema for "Element or List of Elements" Pin
KaЯl2-Nov-06 21:35
KaЯl2-Nov-06 21:35 
QuestionXSL/Xpath Problem Pin
Sarvis24-Oct-06 17:23
Sarvis24-Oct-06 17:23 
GeneralRe: XSL/Xpath Problem Pin
Elina Blank25-Oct-06 2:39
sitebuilderElina Blank25-Oct-06 2:39 
GeneralRe: XSL/Xpath Problem Pin
Sarvis25-Oct-06 4:46
Sarvis25-Oct-06 4:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.