mirror of
https://github.com/rvtr/TwlToolsRED.git
synced 2025-10-31 06:41:18 -04:00
豪州のレーティング団体をAGCBからCOBに変更。ROM情報リストのフォーマットを変更するためにxmlのフォーマットとxsltを更新。ソフトタイトルに幅広の文字が多く含まれているときに表示が途切れる問題を修正。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlToolsRED@506 7061adef-622a-194b-ae81-725974e89856
This commit is contained in:
parent
d68c9b839e
commit
0e3c3ee283
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -3284,7 +3284,7 @@ private: System::Windows::Forms::TextBox^ tboxWarningPrivateSaveDataPurpose;
|
||||
this->gridSDK->Columns->AddRange(gcnew cli::array< System::Windows::Forms::DataGridViewColumn^ >(1) {this->dataSDKVer});
|
||||
dataGridViewCellStyle1->Alignment = System::Windows::Forms::DataGridViewContentAlignment::MiddleLeft;
|
||||
dataGridViewCellStyle1->BackColor = System::Drawing::SystemColors::Window;
|
||||
dataGridViewCellStyle1->Font = (gcnew System::Drawing::Font(L"Arial", 9));
|
||||
dataGridViewCellStyle1->Font = (gcnew System::Drawing::Font(L"MS Pゴシック", 9));
|
||||
dataGridViewCellStyle1->ForeColor = System::Drawing::SystemColors::ControlText;
|
||||
dataGridViewCellStyle1->SelectionBackColor = System::Drawing::SystemColors::Highlight;
|
||||
dataGridViewCellStyle1->SelectionForeColor = System::Drawing::SystemColors::HighlightText;
|
||||
@ -3317,7 +3317,7 @@ private: System::Windows::Forms::TextBox^ tboxWarningPrivateSaveDataPurpose;
|
||||
this->colLibName});
|
||||
dataGridViewCellStyle2->Alignment = System::Windows::Forms::DataGridViewContentAlignment::MiddleLeft;
|
||||
dataGridViewCellStyle2->BackColor = System::Drawing::SystemColors::Window;
|
||||
dataGridViewCellStyle2->Font = (gcnew System::Drawing::Font(L"Arial", 9));
|
||||
dataGridViewCellStyle2->Font = (gcnew System::Drawing::Font(L"MS Pゴシック", 9));
|
||||
dataGridViewCellStyle2->ForeColor = System::Drawing::SystemColors::ControlText;
|
||||
dataGridViewCellStyle2->SelectionBackColor = System::Drawing::SystemColors::Highlight;
|
||||
dataGridViewCellStyle2->SelectionForeColor = System::Drawing::SystemColors::HighlightText;
|
||||
@ -4223,7 +4223,7 @@ private: System::Windows::Forms::TextBox^ tboxWarningPrivateSaveDataPurpose;
|
||||
this->colWarnBegin, this->colWarnEnd, this->colWarnCause});
|
||||
dataGridViewCellStyle3->Alignment = System::Windows::Forms::DataGridViewContentAlignment::MiddleLeft;
|
||||
dataGridViewCellStyle3->BackColor = System::Drawing::SystemColors::Window;
|
||||
dataGridViewCellStyle3->Font = (gcnew System::Drawing::Font(L"Arial", 9));
|
||||
dataGridViewCellStyle3->Font = (gcnew System::Drawing::Font(L"MS Pゴシック", 9));
|
||||
dataGridViewCellStyle3->ForeColor = System::Drawing::SystemColors::ControlText;
|
||||
dataGridViewCellStyle3->SelectionBackColor = System::Drawing::SystemColors::Highlight;
|
||||
dataGridViewCellStyle3->SelectionForeColor = System::Drawing::SystemColors::HighlightText;
|
||||
@ -4276,7 +4276,7 @@ private: System::Windows::Forms::TextBox^ tboxWarningPrivateSaveDataPurpose;
|
||||
this->colErrorBegin, this->colErrorEnd, this->colErrorCause});
|
||||
dataGridViewCellStyle5->Alignment = System::Windows::Forms::DataGridViewContentAlignment::MiddleLeft;
|
||||
dataGridViewCellStyle5->BackColor = System::Drawing::SystemColors::Window;
|
||||
dataGridViewCellStyle5->Font = (gcnew System::Drawing::Font(L"Arial", 9));
|
||||
dataGridViewCellStyle5->Font = (gcnew System::Drawing::Font(L"MS Pゴシック", 9));
|
||||
dataGridViewCellStyle5->ForeColor = System::Drawing::SystemColors::ControlText;
|
||||
dataGridViewCellStyle5->SelectionBackColor = System::Drawing::SystemColors::Highlight;
|
||||
dataGridViewCellStyle5->SelectionForeColor = System::Drawing::SystemColors::HighlightText;
|
||||
@ -4486,7 +4486,7 @@ private: System::Windows::Forms::TextBox^ tboxWarningPrivateSaveDataPurpose;
|
||||
System::Xml::XmlElement^ makeGameInfoXmlElement(System::Xml::XmlDocument^ doc);
|
||||
|
||||
// XML形式のリストの本体となるミドルウェアリストの作成(他でも使うので独立させる)
|
||||
System::Xml::XmlElement^ makeMiddlewareListXmlElement(System::Xml::XmlDocument^ doc);
|
||||
System::Xml::XmlElement^ makeMiddlewareListXmlElement(System::Xml::XmlDocument^ doc, bool isCount);
|
||||
|
||||
// XML形式のリストを作成
|
||||
System::Void makeMiddlewareListXml(System::Xml::XmlDocument^ doc);
|
||||
@ -4510,6 +4510,10 @@ private: System::Windows::Forms::TextBox^ tboxWarningPrivateSaveDataPurpose;
|
||||
System::Xml::XmlElement^ makeWarningListXmlElement(System::Xml::XmlDocument ^doc, System::Boolean isCurrent);
|
||||
System::Xml::XmlElement^ makeErrorListCaptionXmlElement(System::Xml::XmlDocument ^doc);
|
||||
|
||||
// XML形式のエラーリストの要素数のカウント
|
||||
int countErrorListXmlElement( System::Boolean isCurrent );
|
||||
int countWarningListXmlElement( System::Boolean isCurrent );
|
||||
|
||||
// XML形式のリストを作成
|
||||
System::Void makeErrorListXml(System::Xml::XmlDocument^ doc, System::Boolean isCurrent);
|
||||
|
||||
|
||||
@ -209,7 +209,7 @@
|
||||
<value>リマスターバージョン</value>
|
||||
</data>
|
||||
<data name="tboxTitleName.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>100, 19</value>
|
||||
<value>145, 19</value>
|
||||
</data>
|
||||
<data name="gboxSrl.Text" xml:space="preserve">
|
||||
<value>ROMデータ情報</value>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -13,6 +13,8 @@ using namespace System::Data;
|
||||
using namespace System::Drawing;
|
||||
using namespace MasterEditorTWL;
|
||||
|
||||
static int s_NodeCount = 0;
|
||||
|
||||
// ======================================================
|
||||
// XMLの一要素を作成
|
||||
// ======================================================
|
||||
@ -20,6 +22,7 @@ static System::Xml::XmlElement^ CreateErrorListElement(System::Xml::XmlDocument
|
||||
System::String ^tagname, System::Boolean isJapanese)
|
||||
{
|
||||
System::Xml::XmlElement ^tag = doc->CreateElement(tagname);
|
||||
tag->SetAttribute( "num", ( s_NodeCount++ ).ToString() );
|
||||
MasterEditorTWL::appendXmlTag( doc, tag, "errname", (isJapanese)?err->Name:err->NameE );
|
||||
MasterEditorTWL::appendXmlTag( doc, tag, "errtype", errtype.ToString() );
|
||||
MasterEditorTWL::appendXmlTag( doc, tag, "errbegin", err->Begin.ToString("X04")+"h" );
|
||||
@ -33,7 +36,9 @@ static System::Xml::XmlElement^ CreateErrorListElement(System::Xml::XmlDocument
|
||||
// ======================================================
|
||||
System::Xml::XmlElement^ Form1::makeErrorListXmlElement(System::Xml::XmlDocument ^doc, System::Boolean isCurrent)
|
||||
{
|
||||
// エラーリスト
|
||||
s_NodeCount = 0;
|
||||
|
||||
// エラーリスト
|
||||
System::Xml::XmlElement ^list = doc->CreateElement( "error-list" );
|
||||
if( isCurrent ) // 現在の入力を反映
|
||||
{
|
||||
@ -81,7 +86,9 @@ System::Xml::XmlElement^ Form1::makeErrorListXmlElement(System::Xml::XmlDocument
|
||||
|
||||
System::Xml::XmlElement^ Form1::makeWarningListXmlElement(System::Xml::XmlDocument ^doc, System::Boolean isCurrent)
|
||||
{
|
||||
// 警告リスト
|
||||
s_NodeCount = 0;
|
||||
|
||||
// 警告リスト
|
||||
System::Xml::XmlElement ^list = doc->CreateElement( "warning-list" );
|
||||
if( isCurrent ) // 現在の入力を反映
|
||||
{
|
||||
@ -155,6 +162,112 @@ System::Xml::XmlElement^ Form1::makeErrorListCaptionXmlElement(System::Xml::XmlD
|
||||
} //System::Xml::XmlElement^ Form1::makeErrorListCaptionXmlElement
|
||||
|
||||
|
||||
// ======================================================
|
||||
// XML形式のリストに載せるエラー数のカウント
|
||||
// ======================================================
|
||||
int Form1::countErrorListXmlElement(System::Boolean isCurrent)
|
||||
{
|
||||
s_NodeCount = 0;
|
||||
|
||||
int count = 0;
|
||||
|
||||
// エラーリスト
|
||||
if( isCurrent ) // 現在の入力を反映
|
||||
{
|
||||
if( this->hSrl->hErrorList != nullptr ) // ROM読み込み時に発見されたエラー
|
||||
{
|
||||
for each( RCMrcError ^err in this->hSrl->hErrorList )
|
||||
{
|
||||
if( !err->IsEnableModify && this->isDisplayOneGridErrorForPurpose( err ) ) // 修正可能な情報は出力しない
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if( this->hErrorList != nullptr ) // 現在のフォーム入力から発見されたエラー
|
||||
{
|
||||
for each( RCMrcError ^err in this->hErrorList )
|
||||
{
|
||||
if( err->IsAffectRom && this->isDisplayOneGridErrorForPurpose( err ) ) // 書類上のエラーは出力しない
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else // ROM読み込み時の情報
|
||||
{
|
||||
if( this->hSrl->hErrorList )
|
||||
{
|
||||
for each( RCMrcError ^err in this->hSrl->hErrorList )
|
||||
{
|
||||
int errtype = 0; // 修正可能な情報と不可能な情報とでタイプを分ける
|
||||
if( err->IsEnableModify )
|
||||
{
|
||||
errtype = 1;
|
||||
}
|
||||
if( this->isDisplayOneGridErrorForPurpose( err ) )
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return count;
|
||||
}//int Form1::countErrorListXmlElement
|
||||
|
||||
int Form1::countWarningListXmlElement(System::Boolean isCurrent)
|
||||
{
|
||||
s_NodeCount = 0;
|
||||
|
||||
int count = 0;
|
||||
|
||||
// 警告リスト
|
||||
if( isCurrent ) // 現在の入力を反映
|
||||
{
|
||||
if( this->hSrl->hWarnList != nullptr ) // ROM読み込み時に発見されたエラー
|
||||
{
|
||||
for each( RCMrcError ^err in this->hSrl->hWarnList )
|
||||
{
|
||||
if( !err->IsEnableModify && this->isDisplayOneGridErrorForPurpose( err ) ) // 修正可能な情報は出力しない
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if( this->hWarnList != nullptr ) // 現在のフォーム入力から発見されたエラー
|
||||
{
|
||||
for each( RCMrcError ^err in this->hWarnList )
|
||||
{
|
||||
if( err->IsAffectRom && this->isDisplayOneGridErrorForPurpose( err ) ) // 書類上のエラーは出力しない
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else // ROM読み込み時の情報
|
||||
{
|
||||
if( this->hSrl->hWarnList )
|
||||
{
|
||||
for each( RCMrcError ^err in this->hSrl->hWarnList )
|
||||
{
|
||||
int errtype = 0; // 修正可能な情報と不可能な情報とでタイプを分ける
|
||||
if( err->IsEnableModify )
|
||||
{
|
||||
errtype = 1;
|
||||
}
|
||||
if( this->isDisplayOneGridErrorForPurpose( err ) )
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return count;
|
||||
} //int Form1::countWarningListXmlElement
|
||||
|
||||
|
||||
// ======================================================
|
||||
// XML形式でリストを作成
|
||||
// ======================================================
|
||||
@ -174,11 +287,54 @@ System::Void Form1::makeErrorListXml(System::Xml::XmlDocument ^doc, System::Bool
|
||||
// ゲーム情報
|
||||
root->AppendChild( this->makeGameInfoXmlElement(doc) );
|
||||
|
||||
// エラー情報
|
||||
root->AppendChild( this->makeErrorListXmlElement(doc, isCurrent) );
|
||||
// ファイルパス
|
||||
MasterEditorTWL::appendXmlTag( doc, root, "path", this->tboxFile->Text );
|
||||
|
||||
// 作成日時
|
||||
System::Xml::XmlElement ^time = doc->CreateElement( "time-info" );
|
||||
System::DateTime ^ datetime = System::DateTime::Now;
|
||||
time->SetAttribute( "year", datetime->Year.ToString() );
|
||||
switch( datetime->Month )
|
||||
{
|
||||
case 1: time->SetAttribute( "month", "January" ); break;
|
||||
case 2: time->SetAttribute( "month", "February" ); break;
|
||||
case 3: time->SetAttribute( "month", "March" ); break;
|
||||
case 4: time->SetAttribute( "month", "April" ); break;
|
||||
case 5: time->SetAttribute( "month", "May" ); break;
|
||||
case 6: time->SetAttribute( "month", "June" ); break;
|
||||
case 7: time->SetAttribute( "month", "July" ); break;
|
||||
case 8: time->SetAttribute( "month", "August" ); break;
|
||||
case 9: time->SetAttribute( "month", "September" ); break;
|
||||
case 10: time->SetAttribute( "month", "October" ); break;
|
||||
case 11: time->SetAttribute( "month", "November" ); break;
|
||||
case 12: time->SetAttribute( "month", "December" ); break;
|
||||
default: time->SetAttribute( "month", datetime->Month.ToString() ); break;
|
||||
}
|
||||
time->SetAttribute( "day", datetime->Day.ToString() );
|
||||
time->SetAttribute( "time", datetime->Hour.ToString("D2") + ":" + datetime->Minute.ToString("D2") );
|
||||
root->AppendChild( time );
|
||||
|
||||
System::Xml::XmlElement ^section;
|
||||
|
||||
// エラー情報
|
||||
section = doc->CreateElement("error-info");
|
||||
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"エラー":"Error" );
|
||||
section->AppendChild( this->makeErrorListXmlElement(doc, isCurrent) );
|
||||
root->AppendChild(section);
|
||||
|
||||
// 警告情報
|
||||
root->AppendChild( this->makeWarningListXmlElement(doc, isCurrent) );
|
||||
section = doc->CreateElement("warning-info");
|
||||
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"警告":"Warning" );
|
||||
section->AppendChild( this->makeWarningListXmlElement(doc, isCurrent) );
|
||||
root->AppendChild(section);
|
||||
|
||||
// エラー数
|
||||
section = doc->CreateElement("error-num-info");
|
||||
section->SetAttribute( "error-title", this->isJapanese()?"エラー":"Error" );
|
||||
section->SetAttribute( "error-num", this->countErrorListXmlElement( isCurrent ).ToString() );
|
||||
section->SetAttribute( "warning-title", this->isJapanese()?"警告":"Warning" );
|
||||
section->SetAttribute( "warning-num", this->countWarningListXmlElement( isCurrent ).ToString() );
|
||||
root->AppendChild(section);
|
||||
|
||||
// 追記
|
||||
root->AppendChild( this->makeErrorListCaptionXmlElement(doc) );
|
||||
|
||||
@ -46,14 +46,20 @@ System::Xml::XmlElement^ Form1::makeGameInfoXmlElement(System::Xml::XmlDocument
|
||||
// ----------------------------------------------
|
||||
// XML形式のリストの本体となるミドルウェアリストの作成(他でも使うので独立させる)
|
||||
// ----------------------------------------------
|
||||
System::Xml::XmlElement^ Form1::makeMiddlewareListXmlElement(System::Xml::XmlDocument ^doc)
|
||||
System::Xml::XmlElement^ Form1::makeMiddlewareListXmlElement(System::Xml::XmlDocument ^doc, bool isCount)
|
||||
{
|
||||
int NodeCount = 0;
|
||||
|
||||
System::Xml::XmlElement ^midlist = doc->CreateElement( "middleware-list" );
|
||||
if( this->hSrl->hLicenseList != nullptr )
|
||||
{
|
||||
for each( RCLicense ^lic in this->hSrl->hLicenseList )
|
||||
{
|
||||
System::Xml::XmlElement ^mid = doc->CreateElement( "middleware" );
|
||||
if( isCount )
|
||||
{
|
||||
mid->SetAttribute( "num", ( NodeCount++ ).ToString() );
|
||||
}
|
||||
MasterEditorTWL::appendXmlTag( doc, mid, "publisher", lic->Publisher );
|
||||
MasterEditorTWL::appendXmlTag( doc, mid, "name", lic->Name );
|
||||
System::String ^note = "";
|
||||
@ -90,7 +96,7 @@ System::Void Form1::makeMiddlewareListXml(System::Xml::XmlDocument^ doc)
|
||||
root->AppendChild( this->makeGameInfoXmlElement(doc) );
|
||||
|
||||
// ミドルウェアリスト
|
||||
root->AppendChild( this->makeMiddlewareListXmlElement(doc) );
|
||||
root->AppendChild( this->makeMiddlewareListXmlElement(doc, false) );
|
||||
}
|
||||
|
||||
// ----------------------------------------------
|
||||
|
||||
@ -13,6 +13,8 @@ using namespace System::Data;
|
||||
using namespace System::Drawing;
|
||||
using namespace MasterEditorTWL;
|
||||
|
||||
static int s_NodeCount = 0;
|
||||
|
||||
// ======================================================
|
||||
// XMLの一要素を作成
|
||||
// ======================================================
|
||||
@ -20,6 +22,7 @@ static System::Xml::XmlElement^ CreateRomInfoListElement(System::Xml::XmlDocumen
|
||||
System::String ^label, System::String ^val, System::String ^type)
|
||||
{
|
||||
System::Xml::XmlElement ^tag = doc->CreateElement("info");
|
||||
tag->SetAttribute( "num", ( s_NodeCount++ ).ToString() );
|
||||
MasterEditorTWL::appendXmlTag( doc, tag, "label", label );
|
||||
MasterEditorTWL::appendXmlTag( doc, tag, "value", val );
|
||||
if( type )
|
||||
@ -33,6 +36,7 @@ static System::Xml::XmlElement^ CreateRomInfoListElement(System::Xml::XmlDocumen
|
||||
System::String ^label, System::Boolean isCheck, System::String ^type)
|
||||
{
|
||||
System::Xml::XmlElement ^tag = doc->CreateElement("info");
|
||||
tag->SetAttribute( "num", ( s_NodeCount++ ).ToString() );
|
||||
MasterEditorTWL::appendXmlTag( doc, tag, "label", label );
|
||||
MasterEditorTWL::appendXmlTag( doc, tag, "value", (isCheck)?"Yes":"No" );
|
||||
if( type )
|
||||
@ -46,6 +50,7 @@ static System::Xml::XmlElement^ CreateSDKVersionListElement(System::Xml::XmlDocu
|
||||
System::String ^version, System::Boolean isStatic)
|
||||
{
|
||||
System::Xml::XmlElement ^tag = doc->CreateElement("sdk-version");
|
||||
tag->SetAttribute( "num", ( s_NodeCount++ ).ToString() );
|
||||
MasterEditorTWL::appendXmlTag( doc, tag, "version", version );
|
||||
MasterEditorTWL::appendXmlTag( doc, tag, "is-static", (isStatic)?"Main SDK":"" );
|
||||
return tag;
|
||||
@ -73,7 +78,34 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
|
||||
// ゲーム情報
|
||||
root->AppendChild( this->makeGameInfoXmlElement(doc) );
|
||||
|
||||
//
|
||||
// ファイルパス
|
||||
MasterEditorTWL::appendXmlTag( doc, root, "path", this->tboxFile->Text );
|
||||
|
||||
// 作成日時
|
||||
System::Xml::XmlElement ^time = doc->CreateElement( "time-info" );
|
||||
System::DateTime ^ datetime = System::DateTime::Now;
|
||||
time->SetAttribute( "year", datetime->Year.ToString() );
|
||||
switch( datetime->Month )
|
||||
{
|
||||
case 1: time->SetAttribute( "month", "January" ); break;
|
||||
case 2: time->SetAttribute( "month", "February" ); break;
|
||||
case 3: time->SetAttribute( "month", "March" ); break;
|
||||
case 4: time->SetAttribute( "month", "April" ); break;
|
||||
case 5: time->SetAttribute( "month", "May" ); break;
|
||||
case 6: time->SetAttribute( "month", "June" ); break;
|
||||
case 7: time->SetAttribute( "month", "July" ); break;
|
||||
case 8: time->SetAttribute( "month", "August" ); break;
|
||||
case 9: time->SetAttribute( "month", "September" ); break;
|
||||
case 10: time->SetAttribute( "month", "October" ); break;
|
||||
case 11: time->SetAttribute( "month", "November" ); break;
|
||||
case 12: time->SetAttribute( "month", "December" ); break;
|
||||
default: time->SetAttribute( "month", datetime->Month.ToString() ); break;
|
||||
}
|
||||
time->SetAttribute( "day", datetime->Day.ToString() );
|
||||
time->SetAttribute( "time", datetime->Hour.ToString("D2") + ":" + datetime->Minute.ToString("D2") );
|
||||
root->AppendChild( time );
|
||||
|
||||
//
|
||||
// 各タブごとに情報をまとめる
|
||||
//
|
||||
System::Xml::XmlElement ^section;
|
||||
@ -82,7 +114,8 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
|
||||
section = doc->CreateElement("basic-rom-info");
|
||||
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"ROM基本情報":"Basic ROM Info" );
|
||||
{
|
||||
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
|
||||
s_NodeCount = 0;
|
||||
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
|
||||
tag->AppendChild( CreateRomInfoListElement(doc, this->labTitleName->Text, this->tboxTitleName->Text, nullptr) );
|
||||
tag->AppendChild( CreateRomInfoListElement(doc, this->labGameCode->Text, this->tboxGameCode->Text, nullptr) );
|
||||
tag->AppendChild( CreateRomInfoListElement(doc, this->labMakerCode->Text, this->tboxMakerCode->Text, nullptr) );
|
||||
@ -104,6 +137,7 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
|
||||
section = doc->CreateElement("twl-extended-info");
|
||||
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"TWL拡張情報":"TWL Extended Info" );
|
||||
{
|
||||
s_NodeCount = 0;
|
||||
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
|
||||
tag->AppendChild( CreateRomInfoListElement(doc, this->labTitleIDLo->Text, this->tboxTitleIDLo->Text, nullptr) );
|
||||
tag->AppendChild( CreateRomInfoListElement(doc, this->labTitleIDHi->Text, this->tboxTitleIDHi->Text, nullptr) );
|
||||
@ -125,6 +159,7 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
|
||||
section = doc->CreateElement("access-control-info");
|
||||
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"アクセスコントロール情報":"Access Control" );
|
||||
{
|
||||
s_NodeCount = 0;
|
||||
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
|
||||
tag->AppendChild( CreateRomInfoListElement(doc, this->cboxIsSD->Text, this->cboxIsSD->Checked, nullptr) );
|
||||
tag->AppendChild( CreateRomInfoListElement(doc, this->cboxIsNAND->Text, this->cboxIsNAND->Checked, nullptr) );
|
||||
@ -139,6 +174,7 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
|
||||
section = doc->CreateElement("dsi-ware-info");
|
||||
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"DSiウェア情報":"DSiWare Info" );
|
||||
{
|
||||
s_NodeCount = 0;
|
||||
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
|
||||
tag->AppendChild( CreateRomInfoListElement(doc, this->labMedia->Text, this->tboxMedia->Text, nullptr) );
|
||||
if( this->hSrl->IsNAND ) // カードアプリでは不要な情報
|
||||
@ -161,7 +197,9 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
|
||||
{
|
||||
System::Xml::XmlElement ^tag = doc->CreateElement("info-list");
|
||||
|
||||
// リージョン
|
||||
s_NodeCount = 0;
|
||||
|
||||
// リージョン
|
||||
System::String ^region = "";
|
||||
if( this->combRegion->DropDownStyle == System::Windows::Forms::ComboBoxStyle::DropDown )
|
||||
{
|
||||
@ -211,6 +249,7 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
|
||||
section = doc->CreateElement("sdk-version-info");
|
||||
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"SDKバージョン":"SDK Version" );
|
||||
{
|
||||
s_NodeCount = 0;
|
||||
System::Xml::XmlElement ^tag = doc->CreateElement("sdk-version-list");
|
||||
for each( RCSDKVersion ^sdk in this->hSrl->hSDKList )
|
||||
{
|
||||
@ -225,7 +264,7 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
|
||||
//
|
||||
section = doc->CreateElement("middleware-info");
|
||||
MasterEditorTWL::appendXmlTag( doc, section, "index", this->isJapanese()?"使用ライブラリ":"Libraries" );
|
||||
section->AppendChild( this->makeMiddlewareListXmlElement(doc) );
|
||||
section->AppendChild( this->makeMiddlewareListXmlElement(doc, true) );
|
||||
root->AppendChild(section);
|
||||
|
||||
//
|
||||
@ -244,6 +283,13 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
|
||||
section->AppendChild( this->makeWarningListXmlElement(doc, isCurrent) );
|
||||
section->AppendChild( this->makeErrorListCaptionXmlElement(doc) );
|
||||
root->AppendChild(section);
|
||||
|
||||
section = doc->CreateElement("error-num-info");
|
||||
section->SetAttribute( "error-title", this->isJapanese()?"エラー":"Error" );
|
||||
section->SetAttribute( "error-num", this->countErrorListXmlElement( isCurrent ).ToString() );
|
||||
section->SetAttribute( "warning-title", this->isJapanese()?"警告":"Warning" );
|
||||
section->SetAttribute( "warning-num", this->countWarningListXmlElement( isCurrent ).ToString() );
|
||||
root->AppendChild(section);
|
||||
}
|
||||
|
||||
} //Form1::makeRomInfoListXml
|
||||
|
||||
@ -22,6 +22,10 @@
|
||||
{
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
text-decoration:underline;
|
||||
text-underline:single;
|
||||
margin-top: 24px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
div.spacer
|
||||
{
|
||||
@ -32,6 +36,24 @@
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
}
|
||||
div.path
|
||||
{
|
||||
font-size: 12px;
|
||||
}
|
||||
span.num-error
|
||||
{
|
||||
color: #FF0000;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
}
|
||||
span.num-normal
|
||||
{
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
}
|
||||
div.error
|
||||
{
|
||||
}
|
||||
hr {
|
||||
width: 1000px;
|
||||
margin-left: 0;
|
||||
@ -39,16 +61,48 @@
|
||||
tr {
|
||||
text-align: left;
|
||||
}
|
||||
tr.even {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
tr.odd {
|
||||
background-color: #D6D3CE;
|
||||
}
|
||||
th {
|
||||
font-size: 12px;
|
||||
background-color: #D6D3CE;
|
||||
color: black;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
th.label {
|
||||
width: 400px;
|
||||
}
|
||||
th.value {
|
||||
width: 300px;
|
||||
}
|
||||
th.type {
|
||||
width: 300px;
|
||||
}
|
||||
th.version {
|
||||
width: 400px;
|
||||
}
|
||||
th.is-static {
|
||||
width: 300px;
|
||||
}
|
||||
th.publisher {
|
||||
width: 200px;
|
||||
}
|
||||
th.name {
|
||||
width: 400px;
|
||||
}
|
||||
th.note {
|
||||
width: 400px;
|
||||
}
|
||||
th.errname {
|
||||
width: 200px;
|
||||
}
|
||||
th.errtype {
|
||||
width: 100px;
|
||||
width: 200px;
|
||||
}
|
||||
th.errrange {
|
||||
width: 100px;
|
||||
@ -59,12 +113,38 @@
|
||||
td {
|
||||
font-weight: normal;
|
||||
font-size: 12px;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
td.label {
|
||||
width: 400px;
|
||||
}
|
||||
td.value {
|
||||
width: 300px;
|
||||
}
|
||||
td.type {
|
||||
width: 300px;
|
||||
}
|
||||
td.version {
|
||||
width: 400px;
|
||||
}
|
||||
td.is-static {
|
||||
width: 300px;
|
||||
}
|
||||
td.publisher {
|
||||
width: 200px;
|
||||
}
|
||||
td.name {
|
||||
width: 400px;
|
||||
}
|
||||
td.note {
|
||||
width: 400px;
|
||||
}
|
||||
td.errname {
|
||||
width: 200px;
|
||||
}
|
||||
td.errtype {
|
||||
width: 100px;
|
||||
width: 200px;
|
||||
}
|
||||
td.errrange {
|
||||
width: 100px;
|
||||
@ -85,20 +165,23 @@
|
||||
|
||||
<xsl:template match="twl-master-editor">
|
||||
<xsl:apply-templates select="game" />
|
||||
<xsl:apply-templates select="error-num-info" />
|
||||
<div class="path">
|
||||
<xsl:value-of select="path" />
|
||||
</div>
|
||||
<hr />
|
||||
<div class="index">Error</div>
|
||||
<xsl:apply-templates select="error-list" />
|
||||
<hr />
|
||||
<div class="index">Warning</div>
|
||||
<xsl:apply-templates select="warning-list" />
|
||||
<xsl:apply-templates select="error-info" />
|
||||
<xsl:apply-templates select="warning-info" />
|
||||
<hr />
|
||||
<xsl:apply-templates select="error-caption-list" />
|
||||
<hr />
|
||||
<div class="footer">
|
||||
generated by MasterEditorTWL ver. <xsl:value-of select="@version" />
|
||||
generated on <xsl:apply-templates select="time-info" /> by MasterEditorTWL ver. <xsl:value-of select="@version" />
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Title Info -->
|
||||
|
||||
<xsl:template match="game">
|
||||
<div class="game-title">
|
||||
<xsl:value-of select="title-name" />(<xsl:value-of select="game-code" />)
|
||||
@ -108,6 +191,56 @@
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Each Section -->
|
||||
|
||||
<xsl:template match="error-info">
|
||||
|
||||
<div class="index"><xsl:value-of select="index" /></div>
|
||||
|
||||
<xsl:apply-templates select="error-list" />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="warning-info">
|
||||
|
||||
<div class="index"><xsl:value-of select="index" /></div>
|
||||
|
||||
<xsl:apply-templates select="warning-list" />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="error-num-info">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@error-num > 0">
|
||||
<span class="num-error">
|
||||
<xsl:value-of select="@error-title" /> : <xsl:value-of select="@error-num" />
|
||||
</span>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<span class="num-normal">
|
||||
<xsl:value-of select="@error-title" /> : <xsl:value-of select="@error-num" />
|
||||
</span>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
,
|
||||
<xsl:choose>
|
||||
<xsl:when test="@warning-num > 0">
|
||||
<span class="num-error">
|
||||
<xsl:value-of select="@warning-title" /> : <xsl:value-of select="@warning-num" />
|
||||
</span>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<span class="num-normal">
|
||||
<xsl:value-of select="@warning-title" /> : <xsl:value-of select="@warning-num" />
|
||||
</span>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="time-info">
|
||||
<xsl:value-of select="@month" /> <xsl:value-of select="@day" />, <xsl:value-of select="@year" /> <xsl:value-of select="@time" />
|
||||
</xsl:template>
|
||||
|
||||
<!-- Make the Error and Warning table -->
|
||||
|
||||
<xsl:template match="error-list">
|
||||
<table cellspacing="0">
|
||||
<tr>
|
||||
@ -122,11 +255,20 @@
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="error">
|
||||
<tr>
|
||||
<td class="errname"><xsl:value-of select="errname" /></td>
|
||||
<td class="errtype"><xsl:value-of select="errtype" /></td>
|
||||
<td class="errmsg"><xsl:value-of select="errmsg" /></td>
|
||||
<xsl:if test="(@num mod 2)=1">
|
||||
<tr class="odd">
|
||||
<td class="errname"><div class="error"><xsl:value-of select="errname" /></div></td>
|
||||
<td class="errtype"><div class="error"><xsl:value-of select="errtype" /></div></td>
|
||||
<td class="errmsg"><div class="error"><xsl:value-of select="errmsg" /></div></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="(@num mod 2)=0">
|
||||
<tr class="even">
|
||||
<td class="errname"><div class="error"><xsl:value-of select="errname" /></div></td>
|
||||
<td class="errtype"><div class="error"><xsl:value-of select="errtype" /></div></td>
|
||||
<td class="errmsg"><div class="error"><xsl:value-of select="errmsg" /></div></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="warning-list">
|
||||
@ -143,11 +285,20 @@
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="warning">
|
||||
<tr>
|
||||
<td class="errname"><xsl:value-of select="errname" /></td>
|
||||
<td class="errtype"><xsl:value-of select="errtype" /></td>
|
||||
<td class="errmsg"><xsl:value-of select="errmsg" /></td>
|
||||
<xsl:if test="(@num mod 2)=1">
|
||||
<tr class="odd">
|
||||
<td class="errname"><div class="error"><xsl:value-of select="errname" /></div></td>
|
||||
<td class="errtype"><div class="error"><xsl:value-of select="errtype" /></div></td>
|
||||
<td class="errmsg"><div class="error"><xsl:value-of select="errmsg" /></div></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="(@num mod 2)=0">
|
||||
<tr class="even">
|
||||
<td class="errname"><div class="error"><xsl:value-of select="errname" /></div></td>
|
||||
<td class="errtype"><div class="error"><xsl:value-of select="errtype" /></div></td>
|
||||
<td class="errmsg"><div class="error"><xsl:value-of select="errmsg" /></div></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="error-caption-list">
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<xsl:template match="/">
|
||||
<html>
|
||||
<head>
|
||||
<title>TWL Error List</title>
|
||||
<title>TWL Rom Information List</title>
|
||||
<style type="text/css">
|
||||
body {
|
||||
font-family: "verdana";
|
||||
@ -22,6 +22,10 @@
|
||||
{
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
text-decoration:underline;
|
||||
text-underline:single;
|
||||
margin-top: 24px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
div.spacer
|
||||
{
|
||||
@ -32,6 +36,25 @@
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
}
|
||||
div.path
|
||||
{
|
||||
font-size: 12px;
|
||||
}
|
||||
span.num-error
|
||||
{
|
||||
color: #FF0000;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
}
|
||||
span.num-normal
|
||||
{
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
}
|
||||
div.error
|
||||
{
|
||||
color: #FF0000;
|
||||
}
|
||||
hr {
|
||||
width: 1000px;
|
||||
margin-left: 0;
|
||||
@ -39,10 +62,18 @@
|
||||
tr {
|
||||
text-align: left;
|
||||
}
|
||||
tr.even {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
tr.odd {
|
||||
background-color: #D6D3CE;
|
||||
}
|
||||
th {
|
||||
font-size: 12px;
|
||||
background-color: #D6D3CE;
|
||||
color: black;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
th.label {
|
||||
width: 400px;
|
||||
@ -83,6 +114,8 @@
|
||||
td {
|
||||
font-weight: normal;
|
||||
font-size: 12px;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
td.label {
|
||||
width: 400px;
|
||||
@ -135,6 +168,11 @@
|
||||
|
||||
<xsl:template match="twl-master-editor">
|
||||
<xsl:apply-templates select="game" />
|
||||
<xsl:apply-templates select="error-num-info" />
|
||||
<div class="path">
|
||||
<xsl:value-of select="path" />
|
||||
</div>
|
||||
<hr />
|
||||
<xsl:apply-templates select="basic-rom-info" />
|
||||
<xsl:apply-templates select="twl-extended-info" />
|
||||
<xsl:apply-templates select="access-control-info" />
|
||||
@ -144,8 +182,9 @@
|
||||
<xsl:apply-templates select="middleware-info" />
|
||||
<xsl:apply-templates select="error-info" />
|
||||
<xsl:apply-templates select="warning-info" />
|
||||
<hr />
|
||||
<div class="footer">
|
||||
generated by MasterEditorTWL ver. <xsl:value-of select="@version" />
|
||||
generated on <xsl:apply-templates select="time-info" /> by MasterEditorTWL ver. <xsl:value-of select="@version" />
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
@ -158,7 +197,6 @@
|
||||
<div class="game-version">
|
||||
version: <xsl:value-of select="rom-version" />
|
||||
</div>
|
||||
<hr />
|
||||
</xsl:template>
|
||||
|
||||
<!-- Each Section -->
|
||||
@ -168,7 +206,6 @@
|
||||
<div class="index"><xsl:value-of select="index" /></div>
|
||||
|
||||
<xsl:apply-templates select="info-list" />
|
||||
<hr />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="twl-extended-info">
|
||||
@ -176,7 +213,6 @@
|
||||
<div class="index"><xsl:value-of select="index" /></div>
|
||||
|
||||
<xsl:apply-templates select="info-list" />
|
||||
<hr />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="access-control-info">
|
||||
@ -184,7 +220,6 @@
|
||||
<div class="index"><xsl:value-of select="index" /></div>
|
||||
|
||||
<xsl:apply-templates select="info-list" />
|
||||
<hr />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="dsi-ware-info">
|
||||
@ -192,7 +227,6 @@
|
||||
<div class="index"><xsl:value-of select="index" /></div>
|
||||
|
||||
<xsl:apply-templates select="info-list" />
|
||||
<hr />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="market-and-rating-info">
|
||||
@ -200,7 +234,6 @@
|
||||
<div class="index"><xsl:value-of select="index" /></div>
|
||||
|
||||
<xsl:apply-templates select="info-list" />
|
||||
<hr />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="sdk-version-info">
|
||||
@ -208,7 +241,6 @@
|
||||
<div class="index"><xsl:value-of select="index" /></div>
|
||||
|
||||
<xsl:apply-templates select="sdk-version-list" />
|
||||
<hr />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="middleware-info">
|
||||
@ -216,7 +248,6 @@
|
||||
<div class="index"><xsl:value-of select="index" /></div>
|
||||
|
||||
<xsl:apply-templates select="middleware-list" />
|
||||
<hr />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="error-info">
|
||||
@ -226,7 +257,6 @@
|
||||
<xsl:apply-templates select="error-list" />
|
||||
<hr />
|
||||
<xsl:apply-templates select="error-caption-list" />
|
||||
<hr />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="warning-info">
|
||||
@ -236,9 +266,39 @@
|
||||
<xsl:apply-templates select="warning-list" />
|
||||
<hr />
|
||||
<xsl:apply-templates select="error-caption-list" />
|
||||
<hr />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="error-num-info">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@error-num > 0">
|
||||
<span class="num-error">
|
||||
<xsl:value-of select="@error-title" /> : <xsl:value-of select="@error-num" />
|
||||
</span>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<span class="num-normal">
|
||||
<xsl:value-of select="@error-title" /> : <xsl:value-of select="@error-num" />
|
||||
</span>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
,
|
||||
<xsl:choose>
|
||||
<xsl:when test="@warning-num > 0">
|
||||
<span class="num-error">
|
||||
<xsl:value-of select="@warning-title" /> : <xsl:value-of select="@warning-num" />
|
||||
</span>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<span class="num-normal">
|
||||
<xsl:value-of select="@warning-title" /> : <xsl:value-of select="@warning-num" />
|
||||
</span>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="time-info">
|
||||
<xsl:value-of select="@month" /> <xsl:value-of select="@day" />, <xsl:value-of select="@year" /> <xsl:value-of select="@time" />
|
||||
</xsl:template>
|
||||
|
||||
<!-- Make tables from Lists -->
|
||||
|
||||
@ -256,11 +316,20 @@
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="info">
|
||||
<tr>
|
||||
<xsl:if test="(@num mod 2)=1">
|
||||
<tr class="odd">
|
||||
<td class="name"><xsl:value-of select="label" /></td>
|
||||
<td class="value"><xsl:value-of select="value" /></td>
|
||||
<td class="type"><xsl:value-of select="type" /></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="(@num mod 2)=0">
|
||||
<tr class="even">
|
||||
<td class="name"><xsl:value-of select="label" /></td>
|
||||
<td class="value"><xsl:value-of select="value" /></td>
|
||||
<td class="type"><xsl:value-of select="type" /></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Make the SDK version table -->
|
||||
@ -279,11 +348,20 @@
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="sdk-version">
|
||||
<tr>
|
||||
<xsl:if test="(@num mod 2)=1">
|
||||
<tr class="odd">
|
||||
<td class="version"><xsl:value-of select="version" /></td>
|
||||
<td class="is-static"><xsl:value-of select="is-static" /></td>
|
||||
<td class="type"></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="(@num mod 2)=0">
|
||||
<tr class="even">
|
||||
<td class="version"><xsl:value-of select="version" /></td>
|
||||
<td class="is-static"><xsl:value-of select="is-static" /></td>
|
||||
<td class="type"></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Make the Libraries table -->
|
||||
@ -302,11 +380,20 @@
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="middleware">
|
||||
<tr>
|
||||
<xsl:if test="(@num mod 2)=1">
|
||||
<tr class="odd">
|
||||
<td class="publisher"><xsl:value-of select="publisher" /></td>
|
||||
<td class="name"><xsl:value-of select="name" /></td>
|
||||
<td class="note"><xsl:value-of select="note" /></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="(@num mod 2)=0">
|
||||
<tr class="even">
|
||||
<td class="publisher"><xsl:value-of select="publisher" /></td>
|
||||
<td class="name"><xsl:value-of select="name" /></td>
|
||||
<td class="note"><xsl:value-of select="note" /></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Make the Error and Warning table -->
|
||||
@ -325,11 +412,20 @@
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="error">
|
||||
<tr>
|
||||
<td class="errname"><xsl:value-of select="errname" /></td>
|
||||
<td class="errtype"><xsl:value-of select="errtype" /></td>
|
||||
<td class="errmsg"><xsl:value-of select="errmsg" /></td>
|
||||
<xsl:if test="(@num mod 2)=1">
|
||||
<tr class="odd">
|
||||
<td class="errname"><div class="error"><xsl:value-of select="errname" /></div></td>
|
||||
<td class="errtype"><div class="error"><xsl:value-of select="errtype" /></div></td>
|
||||
<td class="errmsg"><div class="error"><xsl:value-of select="errmsg" /></div></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="(@num mod 2)=0">
|
||||
<tr class="even">
|
||||
<td class="errname"><div class="error"><xsl:value-of select="errname" /></div></td>
|
||||
<td class="errtype"><div class="error"><xsl:value-of select="errtype" /></div></td>
|
||||
<td class="errmsg"><div class="error"><xsl:value-of select="errmsg" /></div></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="warning-list">
|
||||
@ -346,11 +442,20 @@
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="warning">
|
||||
<tr>
|
||||
<td class="errname"><xsl:value-of select="errname" /></td>
|
||||
<td class="errtype"><xsl:value-of select="errtype" /></td>
|
||||
<td class="errmsg"><xsl:value-of select="errmsg" /></td>
|
||||
<xsl:if test="(@num mod 2)=1">
|
||||
<tr class="odd">
|
||||
<td class="errname"><div class="error"><xsl:value-of select="errname" /></div></td>
|
||||
<td class="errtype"><div class="error"><xsl:value-of select="errtype" /></div></td>
|
||||
<td class="errmsg"><div class="error"><xsl:value-of select="errmsg" /></div></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="(@num mod 2)=0">
|
||||
<tr class="even">
|
||||
<td class="errname"><div class="error"><xsl:value-of select="errname" /></div></td>
|
||||
<td class="errtype"><div class="error"><xsl:value-of select="errtype" /></div></td>
|
||||
<td class="errmsg"><div class="error"><xsl:value-of select="errmsg" /></div></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="error-caption-list">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user