Ask a Question related to ASP.NET General, Design and Development.
-
Justin SB #1
Re: FINAL TRY -- MVPs -- Please just tell me if this is an unworkable BUG!!!
Kathy,
Works fine here on .NET 1.1 & Windows 2000.
Also, are you sure that the problem is the third level of nesting and not
just that the text for that node contains the word 'step'? Either way, I
recommend that you check if upgrading to .NET 1.1 solves your problem.
For the future, I think you would have got more response had you posted full
example code, ready to run by people that wanted to help you.
Yours sincerely,
Justin Santa Barbara
Consonica Ltd.
"KathyB" <KathyBurke40@attbi.com> wrote in message
news:75e8d381.0306270656.68ab80cc@posting.google.c om...> Hi,
>
> Absolutely, no one appears to be able/willing to respond to my
> request. I've based a serious project on the wonderful BENEFITS of
> using .net and the system.xml classes but this problem unresolved is a
> project killer. The entire system is based on serving up hundreds of
> step-by-step work instruction documents...anything more than 2 nested
> levels of xml elements cause an index error in .net ALTHOUGH they work
> FINE in IE/msxml. The documents will almost always have more than 2
> levels. (outline format 1., 1.1, 1.1.1, 1.1.1.1)
>
> One more time...with feeling! Please just drop the following into IE,
> then .net and see what I mean! I've marked the third-level <step>
> where the error occurs.
>
> Thanks in advance...Kathy
>
> xml***********************
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/xsl" href="KB_test.xsl"?> <!--comment out
> if .net-->
> <work_instruction revision="B" doc_control_no="10-MS30-1000-037-B"
> dept="10-ME30">
> <title>EKRA E5 Screen Printer WI</title>
> <safety>
> <numbered_list>
> <listitem><para>Static prevention straps and lab coats must be worn at
> all
> times.</para></listitem>
> <listitem><para>Vinyl disposable gloves must be worn when handling
> solder
> paste and cleaning stencil and squeegee blades.</para></listitem>
> <listitem><para>Cotton gloves <emphasis>must be worn</emphasis> when
> handling bare boards to load
> into the Board Loader machine prior to printing.</para></listitem>
> </numbered_list>
> </safety>
> <tools_materials>
> <numbered_list>
> <listitem><para>Solder Paste - See Product Setup
> Sheet</para></listitem>
> <listitem><para>Squeegee Blades - See Product Setup
> Sheet</para></listitem>
> <listitem><para>Stencil - See Product Setup Sheet</para></listitem>
> <listitem><para>Stencil Wiper Paper</para></listitem>
> <listitem><para>Spatula</para></listitem>
> <listitem><para>Lint-free Paper Wipes</para></listitem>
> </numbered_list>
> </tools_materials>
> <process_steps>
> <step timer="no"><para>Switching ON the E5 Screen Printer.</para>
> <step timer="no"><para>Rotate the Main Switch located on the left side
> of the machine
> to the ON position. (This will supply power to both the machine and
> operator
> PCs.)</para>
> </step>
> <step timer="no"><para>Allow machine computer and operator computer to
> initialize. (The
> Main Menu appears on the screen. The machine program that was last
> active
> is loaded automatically. The front cover is unlocked.)</para>
> </step>
> <step timer="no"><para>Enter <emphasis>test measurement</emphasis>:
> <measure/></para>
> </step>
> <step timer="no"><para>Use the arrow keys to select the CONTROL menu
> item. Press the
> ENTER key. (The control unit is switched on; the status field changes
> to
> green).</para>
> </step>
> <step timer="no"><para>Use the arrow key to select the REFERENCE-DRIVE
> menu item. Press
> the ENTER key. (The field flashes green during reference-drive process
> and
> remains green after. All the motors, except the transport width motor,
> perform
> a reference drive).</para><para>THIS IS TO TEST THE SUBSEQUENT PARA
> TEMPLATE.</para>
> </step>
> <step timer="no"><para>Setup.</para>
> <step timer="no"><para>Use the arrow key to select the FILE menu item.
> Press the ENTER
> key. (Pop-Up window with a list of available programs
> displays).</para>
> <step timer="no"><para>This is to test the third level
> STEP. *****THIS IS WHERE .NET THROWS INDEX ERROR.*****</para></step>
> </step>
> <step timer="no"><para>Use the up and down arrow keys to select the
> file
> for the board
> you want to print, then using left and right arrow keys select the
> LOAD
> field.
> Press the ENTER key. (Screen: NAME OF PROGRAM: LOAD PROGRAMME? YES /
> NO.)</para>
> </step>
> </step>
> </step>
> </process_steps>
> </work_instruction>
>
> XSL****************(sorry, kind of long...but pretty!)
> <?xml version="1.0"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method="html"/>
>
> <!-- ================================================== ======= -->
> <!-- Standard On-Line Work Instruction Stylesheet 6/12/03 -->
> <!-- ================================================== ======= -->
> <xsl:template match="/">
> <html>
> <head>
> <style type="text/css">
> bgcolor="#FFFFFF"
> h1 {font-family: Verdana;color: blue;font-size:20pt
> font-weight:bold;margin-top:0;margin-bottom:0}
> h2 {font-family: Verdana;color: red;font-size:18pt
> font-weight:bold;margin-top:0;margin-bottom:0}
> h3 {font-family: Verdana;color:
> white;font-size:14pt;font-weight:bold;margin-top:0;margin-bottom:0}
> body {font-family: Verdana;color: black;font-size:12pt}
> p {font-family: Verdana;color: black;font-size:12pt}
> h4 {font-family: Verdana;color:
> white;font-size:12pt;font-weight:bold;text-transform:
> uppercase;margin-top:0;margin-bottom:0}
> h5 {font-family: Verdana;color:
> white;font-size:12pt;font-weight:bold;margin-top:0;margin-bottom:0}
> h6 {font-family: Verdana;color:
> black;font-size:12pt;font-weight:bold;margin-top:0;margin-bottom:0}
> </style>
> <title>Example of XSLT</title>
> </head>
> <body>
> <h1><xsl:value-of select="/work_instruction/title"/></h1>
> <form method="POST">
> <xsl:apply-templates/>
> </form>
> </body>
> </html>
> </xsl:template>
>
> <xsl:template match="safety">
> <table border="1" width="100%" cellpadding="4">
> <tr bgcolor="red" valign="middle">
> <th colspan="2" align="left">
> <h3>SAFETY</h3>
> </th></tr>
> <xsl:apply-templates select="numbered_list/listitem" mode="safety"
> />
> </table>
> <br />
> </xsl:template>
> <xsl:template match="listitem" mode="safety">
> <tr><td>
> <table border="0">
> <tr>
> <td valign="top"><xsl:number level="multiple" format="1. "
> count="listitem" /> </td>
> <td valign="top"><xsl:apply-templates/></td>
> </tr>
> </table>
> </td></tr>
> </xsl:template>
>
> <xsl:template match="tools_materials">
> <table border="1" width="100%" cellpadding="4">
> <tr bgcolor="orange" valign="middle">
> <th colspan="3" align="left">
> <h3>TOOLS AND MATERIALS</h3>
> </th></tr>
> <tr><td><b>Tool/Material</b></td><td align="center"><b>Jabil Part
> No.</b></td>
> </tr>
> <xsl:apply-templates select="numbered_list/listitem"
> mode="tools_materials" />
> </table>
> <br />
> </xsl:template>
> <xsl:template match="listitem" mode="tools_materials">
> <tr><td>
> <table border="0">
> <tr>
> <td valign="top"><xsl:number level="multiple" format="1. "
> count="listitem" /> </td>
> <td valign="top"><xsl:apply-templates/></td>
> </tr>
> </table>
> <td valign="top"> </td>
> </td></tr>
> </xsl:template>
>
> <xsl:template match="process_steps">
> <table border="1" width="100%" cellpadding="4">
> <tr bgcolor="blue" valign="middle">
> <th align="left" colspan="4">
> <h3>PROCESS STEPS</h3>
> </th>
> <tr bgcolor="green" valign="middle">
> <td align="center" valign="top">
> <input type="button" name="Start" value="START"></input></td>
> <td align="left"><font color="white"><b>Click the START button to
> begin the work instruction.</b></font></td></tr>
>
> <xsl:apply-templates/>
> </tr>
> <tr bgcolor="red" valign="middle">
> <td align="center" valign="top">
> <input type="button" name="Finish" value="FINISH"></input></td>
> <td align="left"><font color="white"><b>Click the FINISH button when
> work instruction is complete.</b></font></td></tr>
> </table>
> </xsl:template>
> <xsl:template match="step">
> <xsl:variable name="space" select="(count(ancestor::step) * 12 + 1)
> *
> 7"/>
> <tr onMouseOver="this.bgColor = '#00FFFF'" onMouseOut ="this.bgColor
> =
> '#FFFFFF'" >
> <td align="center" valign="top">
> <!-- xsl:apply-templates select="@timer[.='yes']"/ -->
> <xsl:attribute name="Anomaly"></xsl:attribute>
> <input type="button" value="Anomaly"></input>
> </td>
> <td valign="top">
> <table width="100%" border="0" cellpadding="0">
> <tr>
> <td valign="top" width="{$space}">
> <table border="0" cellpadding="0">
> <tr>
> <td valign="top" width="{$space}">  </td>
> <td valign="top">
> <xsl:number level="multiple" count="step" format="1.1"/>
> <xsl:if test="not(ancestor::step)">
> <xsl:text>.</xsl:text>
> </xsl:if>
> <xsl:text>  </xsl:text>
> </td>
> </tr>
> </table>
> </td>
> <td>
> <xsl:apply-templates select="*[not(self::step)]"/>
> </td>
> </tr>
> </table>
> </td>
> </tr>
> <xsl:apply-templates select="step"/>
> </xsl:template>
>
> <xsl:template match="@timer">
> <xsl:if test=".='yes'">
> <xsl:attribute name="Start"></xsl:attribute>
> <input type="button" value="Start"></input>
> <xsl:attribute name="Finish"></xsl:attribute>
> <td align="center" valign="top">
> <input type="button" value="Finish"></input></td>
> </xsl:if>
> <td align="center" valign="top">
> <xsl:attribute name="Anomaly"></xsl:attribute>
> <input type="button" value="Anomaly"></input></td>
> </xsl:template>
>
>
> <xsl:template match="para">
> <p><xsl:apply-templates/></p>
> </xsl:template>
>
> <xsl:template match="measure">
> <input type="text" name="@name" value="{.}"/>  
> <input type="button" value="Verify"/>
> </xsl:template>
>
> <xsl:template match="unordered_list">
> <table align="left"><br />
> <xsl:apply-templates select="listitem" mode="ul"/></table>
> </xsl:template>
> <xsl:template match="listitem" mode="ul">
> <tr><td valign="top">•</td>
> <td valign="top"><xsl:apply-templates select="."/></td></tr>
> </xsl:template>
>
> <!-- format and set html tags for subelements -->
>
> <xsl:template match="warning">
> <table>
> <tr bgcolor="red" valign="middle">
> <td>
> <h4>WARNING: <xsl:value-of select="."/></h4>
> </td><xsl:apply-templates select="warning"/>
> </tr>
> </table>
> </xsl:template>
>
> <xsl:template match="caution">
> <table>
> <tr bgcolor="blue" valign="middle">
> <td>
> <h5>CAUTION: <xsl:value-of select="."/></h5>
> </td><xsl:apply-templates select="caution"/>
> </tr>
> </table>
> </xsl:template>
>
> <xsl:template match="note">
> <table>
> <tr bgcolor="yellow" align="middle">
> <td>
> <h6>Note: <xsl:value-of select="."/></h6>
> </td><xsl:apply-templates select="note"/>
> </tr>
> </table>
> </xsl:template>
>
> <xsl:template match="emphasis">
> <b><xsl:apply-templates/></b>
> </xsl:template>
>
> <xsl:template match="link">
> <a target="_blank" href="{@url}"><xsl:apply-templates/></a>
> </xsl:template>
>
>
> <!-- Remove the Title element from content -->
>
> <xsl:template match="title"/>
>
> </xsl:stylesheet>
Justin SB Guest
-
Flash 9 and Final Cut Pro 6
I am from an animation company, and we use Flash to animate. Our current version is Flash 9 and our sequences will be delivered as HD at 24fps. We... -
6.06 Final
Downloaded and installed Flight7 and have been updating it on a regular basis thru adept. I did a "full upgrade" in adept and it downloaded and... -
PG8 final when
Dear Developers, when do you plan to announce the final version of 8.0.0? As far as I can remember it was promised by 15. dec. No hurrying, just... -
[ANN] MacSOUP 2.5 (final) available
MacSOUP 2.5 is no longer beta. There's yet another bunch of bug fixes since 2.5b3, and it includes a manual again. Available from: ... -
LAST TRY - Microsoft MVPs...it this an unfixable BUG???
You might get a better response in microsoft.public.dotnet.xml if you don't get one here. Colin "Kathy Burke" <kathyburke40@attbi.com> wrote... -
Tu-Thach #2
Re: FINAL TRY -- MVPs -- Please just tell me if this is an unworkable BUG!!!
The problem with your XSL is at the line
<xsl:number level="multiple" count="step" format="1.1"/>
if you remove the
format="1.1"
it should work.
That took me a while to test since you did not include
any source code. Please attach them next time.
Tu-Thach
of nesting and not>-----Original Message-----
>Kathy,
>
>Works fine here on .NET 1.1 & Windows 2000.
>
>Also, are you sure that the problem is the third levelword 'step'? Either way, I>just that the text for that node contains theyour problem.>recommend that you check if upgrading to .NET 1.1 solveshad you posted full>
>For the future, I think you would have got more responseyou.>example code, ready to run by people that wanted to helprespond to my>
>Yours sincerely,
>
>Justin Santa Barbara
>Consonica Ltd.
>
>
>"KathyB" <KathyBurke40@attbi.com> wrote in message
>news:75e8d381.0306270656.68ab80cc@posting.google. com...>> Hi,
>>
>> Absolutely, no one appears to be able/willing toBENEFITS of>> request. I've based a serious project on the wonderfulunresolved is a>> using .net and the system.xml classes but this problemup hundreds of>> project killer. The entire system is based on servingmore than 2 nested>> step-by-step work instruction documents...anythingALTHOUGH they work>> levels of xml elements cause an index error in .nethave more than 2>> FINE in IE/msxml. The documents will almost alwaysfollowing into IE,>> levels. (outline format 1., 1.1, 1.1.1, 1.1.1.1)
>>
>> One more time...with feeling! Please just drop thelevel <step>>> then .net and see what I mean! I've marked the third-<!--comment out>> where the error occurs.
>>
>> Thanks in advance...Kathy
>>
>> xml***********************
>> <?xml version="1.0"?>
>> <?xml-stylesheet type="text/xsl" href="KB_test.xsl"?>1000-037-B">> if .net-->
>> <work_instruction revision="B" doc_control_no="10-MS30-must be worn at>> dept="10-ME30">
>> <title>EKRA E5 Screen Printer WI</title>
>> <safety>
>> <numbered_list>
>> <listitem><para>Static prevention straps and lab coatswhen handling>> all
>> times.</para></listitem>
>> <listitem><para>Vinyl disposable gloves must be wornblades.</para></listitem>>> solder
>> paste and cleaning stencil and squeegeeworn</emphasis> when>> <listitem><para>Cotton gloves <emphasis>must beprinting.</para></listitem>>> handling bare boards to load
>> into the Board Loader machine prior toSheet</para></listitem>>> </numbered_list>
>> </safety>
>> <tools_materials>
>> <numbered_list>
>> <listitem><para>Solder Paste - See Product Setup
>> Sheet</para></listitem>
>> <listitem><para>Squeegee Blades - See Product Setup
>> Sheet</para></listitem>
>> <listitem><para>Stencil - See Product SetupPrinter.</para>>> <listitem><para>Stencil Wiper Paper</para></listitem>
>> <listitem><para>Spatula</para></listitem>
>> <listitem><para>Lint-free Paper Wipes</para></listitem>
>> </numbered_list>
>> </tools_materials>
>> <process_steps>
>> <step timer="no"><para>Switching ON the E5 Screenon the left side>> <step timer="no"><para>Rotate the Main Switch locatedthe machine and>> of the machine
>> to the ON position. (This will supply power to bothoperator computer to>> operator
>> PCs.)</para>
>> </step>
>> <step timer="no"><para>Allow machine computer andthat was last>> initialize. (The
>> Main Menu appears on the screen. The machine program</para>>> active
>> is loaded automatically. The front cover is unlocked.)measurement</emphasis>:>> </step>
>> <step timer="no"><para>Enter <emphasis>testthe CONTROL menu>> <measure/></para>
>> </step>
>> <step timer="no"><para>Use the arrow keys to selectstatus field changes>> item. Press the
>> ENTER key. (The control unit is switched on; theREFERENCE-DRIVE>> to
>> green).</para>
>> </step>
>> <step timer="no"><para>Use the arrow key to select thereference-drive process>> menu item. Press
>> the ENTER key. (The field flashes green duringtransport width motor,>> and
>> remains green after. All the motors, except theSUBSEQUENT PARA>> perform
>> a reference drive).</para><para>THIS IS TO TEST THEFILE menu item.>> TEMPLATE.</para>
>> </step>
>> <step timer="no"><para>Setup.</para>
>> <step timer="no"><para>Use the arrow key to select theERROR.*****</para></step>>> Press the ENTER
>> key. (Pop-Up window with a list of available programs
>> displays).</para>
>> <step timer="no"><para>This is to test the third level
>> STEP. *****THIS IS WHERE .NET THROWS INDEXto select the>> </step>
>> <step timer="no"><para>Use the up and down arrow keyskeys select the>> file
>> for the board
>> you want to print, then using left and right arrowPROGRAMME? YES />> LOAD
>> field.
>> Press the ENTER key. (Screen: NAME OF PROGRAM: LOAD================================================== =======>> NO.)</para>
>> </step>
>> </step>
>> </step>
>> </process_steps>
>> </work_instruction>
>>
>> XSL****************(sorry, kind of long...but pretty!)
>> <?xml version="1.0"?>
>> <xsl:stylesheet version="1.0"
>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>> <xsl:output method="html"/>
>>
>> <!--
-->6/12/03 -->>> <!-- Standard On-Line Work Instruction Stylesheet================================================== =======>> <!--
-->top:0;margin-bottom:0}>> <xsl:template match="/">
>> <html>
>> <head>
>> <style type="text/css">
>> bgcolor="#FFFFFF"
>> h1 {font-family: Verdana;color: blue;font-size:20pt
>> font-weight:bold;margin-top:0;margin-bottom:0}
>> h2 {font-family: Verdana;color: red;font-size:18pt
>> font-weight:bold;margin-top:0;margin-bottom:0}
>> h3 {font-family: Verdana;color:
>> white;font-size:14pt;font-weight:bold;margin-size:12pt}>> body {font-family: Verdana;color: black;font-top:0;margin-bottom:0}>> p {font-family: Verdana;color: black;font-size:12pt}
>> h4 {font-family: Verdana;color:
>> white;font-size:12pt;font-weight:bold;text-transform:
>> uppercase;margin-top:0;margin-bottom:0}
>> h5 {font-family: Verdana;color:
>> white;font-size:12pt;font-weight:bold;margin-top:0;margin-bottom:0}>> h6 {font-family: Verdana;color:
>> black;font-size:12pt;font-weight:bold;margin-select="/work_instruction/title"/></h1>>> </style>
>> <title>Example of XSLT</title>
>> </head>
>> <body>
>> <h1><xsl:value-ofselect="numbered_list/listitem" mode="safety">> <form method="POST">
>> <xsl:apply-templates/>
>> </form>
>> </body>
>> </html>
>> </xsl:template>
>>
>> <xsl:template match="safety">
>> <table border="1" width="100%" cellpadding="4">
>> <tr bgcolor="red" valign="middle">
>> <th colspan="2" align="left">
>> <h3>SAFETY</h3>
>> </th></tr>
>> <xsl:apply-templatesformat="1. ">> />
>> </table>
>> <br />
>> </xsl:template>
>> <xsl:template match="listitem" mode="safety">
>> <tr><td>
>> <table border="0">
>> <tr>
>> <td valign="top"><xsl:number level="multiple"align="center"><b>Jabil Part>> count="listitem" /> </td>
>> <td valign="top"><xsl:apply-templates/></td>
>> </tr>
>> </table>
>> </td></tr>
>> </xsl:template>
>>
>> <xsl:template match="tools_materials">
>> <table border="1" width="100%" cellpadding="4">
>> <tr bgcolor="orange" valign="middle">
>> <th colspan="3" align="left">
>> <h3>TOOLS AND MATERIALS</h3>
>> </th></tr>
>> <tr><td><b>Tool/Material</b></td><tdmode="tools_materials">>> No.</b></td>
>> </tr>
>> <xsl:apply-templates select="numbered_list/listitem"
>> mode="tools_materials" />
>> </table>
>> <br />
>> </xsl:template>
>> <xsl:template match="listitem"format="1. ">> <tr><td>
>> <table border="0">
>> <tr>
>> <td valign="top"><xsl:number level="multiple"value="START"></input></td>>> count="listitem" /> </td>
>> <td valign="top"><xsl:apply-templates/></td>
>> </tr>
>> </table>
>> <td valign="top"> </td>
>> </td></tr>
>> </xsl:template>
>>
>> <xsl:template match="process_steps">
>> <table border="1" width="100%" cellpadding="4">
>> <tr bgcolor="blue" valign="middle">
>> <th align="left" colspan="4">
>> <h3>PROCESS STEPS</h3>
>> </th>
>> <tr bgcolor="green" valign="middle">
>> <td align="center" valign="top">
>> <input type="button" name="Start"START button to>> <td align="left"><font color="white"><b>Click thevalue="FINISH"></input></td>>> begin the work instruction.</b></font></td></tr>
>>
>> <xsl:apply-templates/>
>> </tr>
>> <tr bgcolor="red" valign="middle">
>> <td align="center" valign="top">
>> <input type="button" name="Finish"FINISH button when>> <td align="left"><font color="white"><b>Click the(ancestor::step) * 12 + 1)>> work instruction is complete.</b></font></td></tr>
>> </table>
>> </xsl:template>
>> <xsl:template match="step">
>> <xsl:variable name="space" select="(countonMouseOut ="this.bgColor>> *
>> 7"/>
>> <tr onMouseOver="this.bgColor = '#00FFFF'"[.='yes']"/ -->>> =
>> '#FFFFFF'" >
>> <td align="center" valign="top">
>> <!-- xsl:apply-templates select="@timerformat="1.1"/>>> <xsl:attribute name="Anomaly"></xsl:attribute>
>> <input type="button" value="Anomaly"></input>
>> </td>
>> <td valign="top">
>> <table width="100%" border="0" cellpadding="0">
>> <tr>
>> <td valign="top" width="{$space}">
>> <table border="0" cellpadding="0">
>> <tr>
>> <td valign="top" width="{$space}"> </td>
>> <td valign="top">
>> <xsl:number level="multiple" count="step"(self::step)]"/>>> <xsl:if test="not(ancestor::step)">
>> <xsl:text>.</xsl:text>
>> </xsl:if>
>> <xsl:text> </xsl:text>
>> </td>
>> </tr>
>> </table>
>> </td>
>> <td>
>> <xsl:apply-templates select="*[notmode="ul"/></table>>> </td>
>> </tr>
>> </table>
>> </td>
>> </tr>
>> <xsl:apply-templates select="step"/>
>> </xsl:template>
>>
>> <xsl:template match="@timer">
>> <xsl:if test=".='yes'">
>> <xsl:attribute name="Start"></xsl:attribute>
>> <input type="button" value="Start"></input>
>> <xsl:attribute name="Finish"></xsl:attribute>
>> <td align="center" valign="top">
>> <input type="button" value="Finish"></input></td>
>> </xsl:if>
>> <td align="center" valign="top">
>> <xsl:attribute name="Anomaly"></xsl:attribute>
>> <input type="button" value="Anomaly"></input></td>
>> </xsl:template>
>>
>>
>> <xsl:template match="para">
>> <p><xsl:apply-templates/></p>
>> </xsl:template>
>>
>> <xsl:template match="measure">
>> <input type="text" name="@name" value="{.}"/>
>> <input type="button" value="Verify"/>
>> </xsl:template>
>>
>> <xsl:template match="unordered_list">
>> <table align="left"><br />
>> <xsl:apply-templates select="listitem"select="."/></td></tr>>> </xsl:template>
>> <xsl:template match="listitem" mode="ul">
>> <tr><td valign="top">.</td>
>> <td valign="top"><xsl:apply-templatestemplates/></a>>> </xsl:template>
>>
>> <!-- format and set html tags for subelements -->
>>
>> <xsl:template match="warning">
>> <table>
>> <tr bgcolor="red" valign="middle">
>> <td>
>> <h4>WARNING: <xsl:value-of select="."/></h4>
>> </td><xsl:apply-templates select="warning"/>
>> </tr>
>> </table>
>> </xsl:template>
>>
>> <xsl:template match="caution">
>> <table>
>> <tr bgcolor="blue" valign="middle">
>> <td>
>> <h5>CAUTION: <xsl:value-of select="."/></h5>
>> </td><xsl:apply-templates select="caution"/>
>> </tr>
>> </table>
>> </xsl:template>
>>
>> <xsl:template match="note">
>> <table>
>> <tr bgcolor="yellow" align="middle">
>> <td>
>> <h6>Note: <xsl:value-of select="."/></h6>
>> </td><xsl:apply-templates select="note"/>
>> </tr>
>> </table>
>> </xsl:template>
>>
>> <xsl:template match="emphasis">
>> <b><xsl:apply-templates/></b>
>> </xsl:template>
>>
>> <xsl:template match="link">
>> <a target="_blank" href="{@url}"><xsl:apply->>> </xsl:template>
>>
>>
>> <!-- Remove the Title element from content -->
>>
>> <xsl:template match="title"/>
>>
>> </xsl:stylesheet>
>
>.
>Tu-Thach Guest
-
David Browne #3
Re: FINAL TRY -- MVPs -- Please just tell me if this is an unworkable BUG!!!
"Justin SB" <justinsb@consonica.com> wrote in message
news:OoG9XLMPDHA.3016@TK2MSFTNGP10.phx.gbl...Yes, I reproduced the issue on 1.0, and it went away on 1.1.> Kathy,
>
> Works fine here on .NET 1.1 & Windows 2000.
>
David
David Browne Guest



Reply With Quote

