Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: how to generate markups? how to generate markups?To: NULL Date: 1/4/2006 4:39:00 PM This is a multi-part message in MIME format.
------=_NextPart_000_000D_01C6114D.4CABCF80
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
Hi,
=20
How to generate this sequence:
=20
<B>0</B> minutes
=20
instead of:
=20
<B>0<B/> minutes
=20
in the following situation:
=20
<?xml version=3D"1.0"?>
<xsl:stylesheet version=3D"1.0"=20
xmlns:xsl=3Dhttp://www.w3.org/1999/XSL/Transform=20
xmlns:msxsl=3D"urn:schemas-microsoft-com:xslt"=20
xmlns:vb=3D"xxx.xxx.xxx">
=20
<xsl:output method=3D"html"/>
=20
<msxsl:script language=3D"VBScript" =
implements-prefix=3D"vb">
<![CDATA[
;my vbscript function returns formatted html output
Function formatDuration()
formatDuration =3D =
"<B>0</B> minutes"
End Function
]]>
</msxsl:script>
=20
<!-- what should I do here ? -->
<xsl:template match=3D"/"> =20
<xsl:value-of select=3D"vb:formatDuration()"/>
</xsl:template>
</xsl:stylesheet>
thank you
------=_NextPart_000_000D_01C6114D.4CABCF80
Content-Type: text/html;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dkoi8-r">
<META content=3D"MSHTML 6.00.2800.1528" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3DArial=20
size=3D2>Hi,</FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2> <?xml:namespace prefix =3D o ns =3D=20
"urn:schemas-microsoft-com:office:office" =
/><o:p></o:p></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3DArial =
size=3D2>How to=20
generate this sequence:</FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2> <o:p></o:p></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2><FONT color=3D#0000ff><SPAN=20
style=3D"mso-tab-count: =
1"> =20
</SPAN><B>0</B> minutes</FONT></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2> <o:p></o:p></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3DArial =
size=3D2>instead=20
of:</FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2> <o:p></o:p></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2><SPAN style=3D"mso-spacerun: yes"> </SPAN><SPAN=20
style=3D"mso-tab-count: =
1"> <FON=
T=20
color=3D#000080> </FONT></SPAN><FONT=20
color=3D#0000ff>&lt;B&gt;0&lt;B/&gt;=20
minutes</FONT></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2> <o:p></o:p></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3DArial =
size=3D2>in the=20
following situation:</FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2> <o:p></o:p></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3DArial =
color=3D#0000ff=20
size=3D2><?xml version=3D"1.0"?></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3DArial =
color=3D#0000ff=20
size=3D2><xsl:stylesheet version=3D"1.0" </FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt 1in"><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>xmlns:xsl=3D</FONT><A=20
href=3D"http://www.w3.org/1999/XSL/Transform"><FONT face=3DArial=20
size=3D2>http://www.w3.org/1999/XSL/Transform</FONT></A><FONT =
face=3DArial=20
color=3D#0000ff size=3D2> </FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt 1in"><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>xmlns:msxsl=3D"urn:schemas-microsoft-com:xslt" =
</FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt 1in"><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>xmlns:vb=3D"xxx.xxx.xxx"></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2><FONT =
color=3D#0000ff> <o:p></o:p></FONT></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2><FONT color=3D#0000ff><SPAN=20
style=3D"mso-tab-count: =
1"> =20
</SPAN><xsl:output method=3D"html"/></FONT></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2><FONT =
color=3D#0000ff> <o:p></o:p></FONT></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2><FONT color=3D#0000ff><SPAN=20
style=3D"mso-tab-count: =
1"> =20
</SPAN><msxsl:script language=3D"VBScript"=20
implements-prefix=3D"vb"></FONT></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2><FONT color=3D#0000ff><SPAN=20
style=3D"mso-tab-count: =
1"> =20
</SPAN><SPAN=20
style=3D"mso-tab-count: =
1"> =20
</SPAN><![CDATA[</FONT></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt 1in; TEXT-INDENT: =
0.5in"><FONT=20
face=3DArial color=3D#008000 size=3D2>;my vbscript function returns =
formatted html=20
output</FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2><FONT color=3D#808080><SPAN=20
style=3D"mso-tab-count: =
2"> &nbs=
p; =20
</SPAN><SPAN=20
style=3D"mso-tab-count: =
1"> =20
</SPAN></FONT><FONT color=3D#000000><STRONG>Function=20
formatDuration()</STRONG></FONT></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2><STRONG><SPAN=20
style=3D"mso-tab-count: =
2"> &nbs=
p; =20
</SPAN><SPAN=20
style=3D"mso-tab-count: =
1"> =20
</SPAN><SPAN=20
style=3D"mso-tab-count: =
1"> =20
</SPAN>formatDuration =3D "<B>0</B>=20
minutes"</STRONG></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2><STRONG><SPAN=20
style=3D"mso-tab-count: =
2"> &nbs=
p; =20
</SPAN><SPAN=20
style=3D"mso-tab-count: =
1"> =20
</SPAN>End Function</STRONG></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2><FONT color=3D#808080><SPAN=20
style=3D"mso-tab-count: =
1"> =20
</SPAN><SPAN=20
style=3D"mso-tab-count: =
1"> <FON=
T=20
color=3D#0000ff> </FONT></SPAN></FONT><FONT=20
color=3D#0000ff>]]></FONT></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2><FONT color=3D#0000ff><SPAN=20
style=3D"mso-tab-count: =
1"> =20
</SPAN></msxsl:script></FONT></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2><FONT =
color=3D#0000ff> <o:p></o:p></FONT></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2><FONT color=3D#000080><SPAN=20
style=3D"mso-tab-count: =
1"> =20
</SPAN></FONT><FONT color=3D#008000><!-- what should I do here ?=20
--></FONT></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2><FONT color=3D#000080><SPAN=20
style=3D"mso-tab-count: =
1"> <FON=
T=20
color=3D#0000ff> </FONT></SPAN></FONT><FONT =
color=3D#0000ff><xsl:template=20
match=3D"/"><SPAN style=3D"mso-spacerun: yes"> =20
</SPAN></FONT></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2><FONT color=3D#808080><SPAN=20
style=3D"mso-tab-count: =
1"> =20
</SPAN><SPAN=20
style=3D"mso-tab-count: =
1"> =20
</SPAN></FONT><FONT color=3D#000000><STRONG><xsl:value-of=20
select=3D"vb:formatDuration()"/></STRONG></FONT></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DArial><FONT=20
size=3D2><FONT color=3D#808080><SPAN=20
style=3D"mso-tab-count: =
1"> =20
</SPAN></FONT><FONT =
color=3D#0000ff></xsl:template></FONT></FONT></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></xsl:stylesheet></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3DArial =
color=3D#000080=20
size=3D2></FONT> </P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3DArial =
color=3D#000080=20
size=3D2></FONT> </P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3DArial=20
size=3D2> thank you</FONT></P></DIV></BODY></HTML>
------=_NextPart_000_000D_01C6114D.4CABCF80--
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
