cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Troubleshooting Procedures MIL-STD-40051-2B Help!

cramsey
1-Newbie

Troubleshooting Procedures MIL-STD-40051-2B Help!

Hi All,

I am new to XML development (the boss thru me in the deep end this is my first document)   I am  stuck trying to create a troubleshooting procedure (tswp)  type "Method A" IAW 40051-2b. Nothing I do seems to produce the output that the contract requires.  I have attached a PDF shown what tags I am using ( first two pages) followed by the generated "output"  and the final page is what the content should be.

I am unsure why the procedure steps re- start again every time a new block starts.  According to the reference manual the steps should be shown as 1 thru to XX  without restarting again.

Any guidance / help from you gurus will be greatly appreciated.

XML DTD and and XSL's  are US Gov (Army) provided  Version 5  and MIL- STD  is 40051-2B   (That's what the contract calls for)   I know there are issues with this version of  styles sheets etc.

Cheers

4 REPLIES 4
mdaly
3-Visitor
(To:cramsey)

Does this help?

<!--Arbortext, Inc., 1988-2013, v.4002-->

<tswp chngno="" wpno="T00014-XXXXX-XXXXX-01-01">

<wpidinfo>

<maintlvl level="maintainer"/>

<title>xxxx DEGR / xxxx FAIL &ndash; <brk/>Temperature Out-of-range in xxx</title>

</wpidinfo>

<initial_setup>

<tools>

<tools-setup-item>

<name>Tool Kit, Aircraft Maintenance</name>

<itemref>

<xref wpid="S00003-XXXXX-XXXXX-01-01" itemid="Tls_S00003-XXXXX-XXXXX-01-01-2"/>

</itemref>

</tools-setup-item>

<tools-setup-item>

<name>Tool Kit, Electronic</name>

<itemref>

<xref wpid="S00003-XXXXX-XXXXX-01-01" itemid="Tls_S00003-XXXXX-XXXXX-01-01-1"/>

</itemref>

</tools-setup-item>

</tools>

<persnreq>

<persnreq-setup-item>

<name>Aircraft Electrical Technician</name>

</persnreq-setup-item>

</persnreq>

<ref>

<ref-setup-item>

<xref wpid="O00001-OPUSUAL-XXXXX-XXXXX-01-01"/>

</ref-setup-item>

</ref>

<eqpconds>

<eqpconds-setup-item>

<condition>System set to safe for maintenance configuration IAW <xref wpid="M00076-XXXXX-XXXXX-01-01"/>.</condition>

</eqpconds-setup-item>

</eqpconds>

<dwgreq>

<dwgreq-setup-item>

<dwgname>

<xref wpid="M00078-XXXXX-XXXXX-01-01" posttext=", Wiring Data"/>

</dwgname>

<dwgno/>

</dwgreq-setup-item>

</dwgreq>

</initial_setup>

<tsproc id="Pro_T00014-XXXXX-XXXXX-01-01-1">

<logicproc>

<title>

<null/>

</title>

<note>

<trim.para>Refer to <xref wpid="M00078-XXXXX-XXXXX-01-01"/> for detailed wiring data.</trim.para>

</note>

<origin origin="T00014-XXXXX-XXXXX-01-01_B1">

<test>

<step1 id="Stp_T00014-XXXXX-XXXXX-01-01-1">

<para>Check for obstructions over the fans and plenum openings.</para>

</step1>

</test>

<indication>

<para>Obstructions?</para>

</indication>

<answer answerval="yes" idref="T00014-XXXXX-XXXXX-01-01_B2"/>

<answer answerval="no" idref="T00014-XXXXX-XXXXX-01-01_B3"/>

</origin>

<endblock type="yes" branch="T00014-XXXXX-XXXXX-01-01_B2">

<malfunc label="malfunction">XXX reports a temperature problem.</malfunc>

<action>

<step1 id="Stp_T00014-XXXXX-XXXXX-01-01-2">

<para>Clear the obstruction(s).</para>

</step1>

</action>

</endblock>

<testblock type="no" branch="T00014-XXXXX-XXXXX-01-01_B3">

<test>

<step1 id="Stp_T00014-XXXXX-XXXXX-01-01-3">

<para>Power on XXX IAW <xref wpid="O00001-OPUSUAL-XXXXX-XXXXX-01-01" itemid="Pro_O00001-OPUSUAL-XXXXX-XXXXX-01-01-1"/>.</para>

</step1>

<step1 id="Stp_T00014-XXXXX-XXXXX-01-01-4">

<para>Observe the fans on the XXX.</para>

</step1>

</test>

<indication>

<para>Are both fans turning?</para>

</indication>

<answer answerval="yes" idref="T00014-XXXXX-XXXXX-01-01_B4"/>

<answer answerval="no" idref="T00014-XXXXX-XXXXX-01-01_B5"/>

</testblock>

<testblock type="yes" branch="T00014-XXXXX-XXXXX-01-01_B4">

<test>

<step1 id="Stp_T00014-XXXXX-XXXXX-01-01-5">

<para>Using an inspection mirror, flashlight, and piece of paper, place the paper in front of the exhaust air outlets from each XXX fan.</para>

</step1>

</test>

<indication>

<specpara>

<note>

<trim.para>Fans on the XXX are on the front panel. Fans on the XXX are on the rear panel. Air is drawn in through the front and out the rear.</trim.para>

</note>

<para>Does the paper blow away from each outlet flow on the XXX?</para>

</specpara>

</indication>

<answer answerval="yes" idref="T00014-XXXXX-XXXXX-01-01_B5"/>

<answer answerval="no" idref="T00014-XXXXX-XXXXX-01-01_B7"/>

</testblock>

<endblock type="no" branch="T00014-XXXXX-XXXXX-01-01_B5">

<malfunc label="malfunction">XXX reports a temperature problem.</malfunc>

<action>

<step1 id="Stp_T00014-XXXXX-XXXXX-01-01-6">

<para>Replace the XXX.</para>

</step1>

</action>

</endblock>

<endblock type="yes" branch="T00014-XXXXX-XXXXX-01-01_B6">

<malfunc label="malfunction">XXX reports a temperature problem.</malfunc>

<action>

<step1 id="Stp_T00014-XXXXX-XXXXX-01-01-7">

<para>Replace the XXX.</para>

</step1>

</action>

</endblock>

<endblock type="no" branch="T00014-XXXXX-XXXXX-01-01_B7">

<malfunc label="malfunction">XXX reports a temperature problem.</malfunc>

<action>

<step1 id="Stp_T00014-XXXXX-XXXXX-01-01-8">

<para>Power off XXX IAW <xref wpid="O00001-OPUSUAL-XXXXX-XXXXX-01-01" itemid="Pro_O00001-OPUSUAL-XXXXX-XXXXX-01-01-2"/>.</para>

</step1>

<step1 id="Stp_T00014-XXXXX-XXXXX-01-01-9">

<para>Power off aircraft.</para>

</step1>

<step1 id="Stp_T00014-XXXXX-XXXXX-01-01-10">

<specpara>

<note>

<trim.para>A fan running counterclockwise indicates a polarity issue caused by mis-wiring.</trim.para>

</note>

<para>Using <xref wpid="M00078-XXXXX-XXXXX-01-01"/>, correct the mis-wiring from the Phase Inverters to the XXX.</para>

</specpara>

</step1>

</action>

</endblock>

</logicproc>

</tsproc>

</tswp>

cramsey
1-Newbie
(To:mdaly)

Thanks for the reply and code  Michael,

however does not work as required,    I stripped out your text  and replaced it by letters to make it easier to highlight the issue that I am having,  I have also attached a pdf of the generated output to help me explain  the problem.

  "Step 1 (branch 1)"   Shows that the "A" is replicated twice and the same as "Step 2 (branch 2)" with the "E and F" also been replicated.- However this is only entered into the xml data once

The other problem  is that the numbering IAW with 40051 -2b -Appendix D Mehtod A (extract attached) shows that the numbering sequence is numerical  Ie start at number one and continuing through until the end of the procedure and does not  recommence with the start of each new branch.




<tswp chngno="" wpno="T00014-XXXXX-XXXXX-01-01">

<wpidinfo><?Pub Dtl?>

<maintlvl level="maintainer"/>

<title>xxxx DEGR / xxxx FAIL &ndash; <brk/>Temperature Out-of-range in xxx</title>

</wpidinfo>

<initial_setup>

<tools>

<tools-setup-item>

<name>Tool Kit, Aircraft Maintenance</name>

<itemref>

<xref itemid="Tls_S00003-XXXXX-XXXXX-01-01-2"

wpid="S00003-XXXXX-XXXXX-01-01"/></itemref>

</tools-setup-item>

<tools-setup-item>

<name>Tool Kit, Electronic</name>

<itemref>

<xref itemid="Tls_S00003-XXXXX-XXXXX-01-01-1"

wpid="S00003-XXXXX-XXXXX-01-01"/></itemref>

</tools-setup-item>

</tools>

<persnreq>

<persnreq-setup-item>

<name>Aircraft Electrical Technician</name>

</persnreq-setup-item>

</persnreq>

<ref>

<ref-setup-item>

<xref wpid="O00001-OPUSUAL-XXXXX-XXXXX-01-01"/></ref-setup-item>

</ref>

<eqpconds>

<eqpconds-setup-item>

<condition>System set to safe for maintenance configuration IAW <xref

wpid="M00076-XXXXX-XXXXX-01-01"/>.</condition>

</eqpconds-setup-item>

</eqpconds>

<dwgreq>

<dwgreq-setup-item>

<dwgname>

<xref posttext=", Wiring Data" wpid="M00078-XXXXX-XXXXX-01-01"/>

</dwgname>

<dwgno></dwgno>

</dwgreq-setup-item>

</dwgreq>

</initial_setup>

<tsproc id="Pro_T00014-XXXXX-XXXXX-01-01-1">

<logicproc>

<title>

<null/>

</title>

<note><?Pub Dtl?>

<trim.para>Refer to <xref wpid="M00078-XXXXX-XXXXX-01-01"/> for detailed wiring data.</trim.para>

</note>

<origin origin="T00014-XXXXX-XXXXX-01-01_B1">

<test esd="no" frame="yes" hcp="no">

<step1 id="Stp_T00014-XXXXX-XXXXX-01-01-1">

<para>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</para>

</step1>

</test>

<indication>

<para>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</para>

</indication>

<answer answerval="yes" idref="T00014-XXXXX-XXXXX-01-01_B2"></answer>

<answer answerval="no" idref="T00014-XXXXX-XXXXX-01-01_B3"></answer>

</origin>

<endblock branch="T00014-XXXXX-XXXXX-01-01_B2" type="yes">

<malfunc label="malfunction">CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC</malfunc>

<action>

<step1 id="Stp_T00014-XXXXX-XXXXX-01-01-2">

<para>DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD</para>

</step1>

</action>

</endblock>

<testblock branch="T00014-XXXXX-XXXXX-01-01_B3" type="no">

<test>

<step1 id="Stp_T00014-XXXXX-XXXXX-01-01-3">

<para>EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE <xref

itemid="Pro_O00001-OPUSUAL-XXXXX-XXXXX-01-01-1"

wpid="O00001-OPUSUAL-XXXXX-XXXXX-01-01"/>.</para>

</step1>

<step1 id="Stp_T00014-XXXXX-XXXXX-01-01-4">

<para>FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF</para>

</step1>

</test>

<indication>

<para>GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG</para>

</indication>

<answer answerval="yes" idref="T00014-XXXXX-XXXXX-01-01_B4"></answer>

<answer answerval="no" idref="T00014-XXXXX-XXXXX-01-01_B5"></answer>

</testblock>

<testblock branch="T00014-XXXXX-XXXXX-01-01_B4" type="yes">

<test>

<step1 id="Stp_T00014-XXXXX-XXXXX-01-01-5">

<para>HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH</para>

</step1>

</test>

<indication>

<specpara>

<note>

<trim.para>IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII</trim.para>

</note>

<para>JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ</para>

</specpara>

</indication>

<answer answerval="yes" idref="T00014-XXXXX-XXXXX-01-01_B5"></answer>

<answer answerval="no" idref="T00014-XXXXX-XXXXX-01-01_B7"></answer>

</testblock>

<endblock branch="T00014-XXXXX-XXXXX-01-01_B5" type="no">

<malfunc label="malfunction">KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK</malfunc>

<action>

<step1 id="Stp_T00014-XXXXX-XXXXX-01-01-6">

<para>LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL</para>

</step1>

</action>

</endblock>

<endblock branch="T00014-XXXXX-XXXXX-01-01_B6" type="yes">

<malfunc label="malfunction">MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM</malfunc>

<action>

<step1 id="Stp_T00014-XXXXX-XXXXX-01-01-7">

<para>NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN</para>

</step1>

</action>

</endblock>

<endblock branch="T00014-XXXXX-XXXXX-01-01_B7" type="no">

<malfunc label="malfunction">OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO</malfunc>

<action>

<step1 id="Stp_T00014-XXXXX-XXXXX-01-01-8">

<para>PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP<xref

itemid="Pro_O00001-OPUSUAL-XXXXX-XXXXX-01-01-2"

wpid="O00001-OPUSUAL-XXXXX-XXXXX-01-01"/>.</para>

</step1>

<step1 id="Stp_T00014-XXXXX-XXXXX-01-01-9">

<para>QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ</para>

</step1>

<step1 id="Stp_T00014-XXXXX-XXXXX-01-01-10">

<specpara>

<note>

<trim.para>RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR</trim.para>

</note>

<para>SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS<xref

wpid="M00078-XXXXX-XXXXX-01-01"/>SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.</para>

</specpara>

</step1>

</action>

</endblock>

</logicproc>

</tsproc>

</tswp>

mdaly
3-Visitor
(To:cramsey)

Chris,

I cannot explain the "doubles" you mentioned either. Your coding seems OK. It could be that whatever is rendering your XML is the problem.

On one Army program we were forced to use Method A, but the Composer/stylesheet would not/could not render the code to look like the example in Appendix D.

If you figure the problem out, let me know. I am sorry I am not much help except to say your coding looks OK.

Hi Chris

I was going to suggest stylesheets. I ran a tswp we had and my output looked very similar to what you got in your first page sample. So maybe you need to investigate the style sheet your are running which is what really controls the look and feel of the document. I manage the styles and xsl but not the authoring but I could check to see what other options you might have based on what we were delivered.

Top Tags