اذهب إلى المحتوى
  • 0

كيفية التحقق من كتابة ملف xml-Entity References

Yasmeen Hassan

السؤال

اريد المساعدة في التأكد من الاسطر التي باللون الاصفر , وكيفية تصحيحها ؟

<?xml version="1.0"?>
<function>
  <title>ctime</title>
  <funcsynopsis>
    <funcdef>
      <function>ctime</fnuction>
    </funcdef>
    <paramdef>
      <parameter>time</parameter>
      <parameter role="opt">gmt</parameter>
    </paramdef>
  </funcsynopsis>
  <para>This function converts the value 
    <parameter> time < /parameter>,as returned by         <function>time()</function>
      <function>file_mtime()</function>, into a string of the form produced by <function>time_date()</function>.
      If the optional argument <parameter>gmt</parameter> is specified and non-zero,the time is returned in <parameter>gmt</parameter>.
      Otherwise, the time is given in the local time zone.
      </para>
      <para><emphasis role="strong" targetgroup="beginners" role="strong">
        Related topics</emphasis>
      </para>
      <para>&ampdoubleclick; the <mousebutton>LEFT    &ampbuttonleft;</mousebutton>
        mouse button on a topic 
      </para>
      <itemizedlist>
        <listitem>
          <para><ulink url="&ampidhelp782;"><function>file_mtime()</function>built-in function</ulink>
          </para>
        </listitem>
        <listitem>
          <para><ulink url="&ampidhelp785;"><function>time()</function> built-infunction</ulink>
          </para>
        </listitem>
      </itemizedlist>
      </function>

XML.docx

رابط هذا التعليق
شارك على الشبكات الإجتماعية

Recommended Posts

  • 1

للتحقق من ملف XML:

نتأكد من أن كل وسم تم فتحه يجب إغلاقه بنفس الاسم وأن تداخل العناصر سليم من تم فتحة أخيراً نغلقه أولاً

<abc>
  <cde>
  </cde>
</abc>

وفي مثالك:

  <funcdef>
   <function>ctime</fnuction>
<!-- ^^^^^^^^^    ^^^^^^^^^^^  -->
  </funcdef>

لانضع فراغات في اسم الوسم أو وسم الإغلاق

<parameter> time < /parameter>,as returned by         
                 ^^^

لا نقوم بتعريف نفس الخاصية أكثر من مرة

 <para><emphasis role="strong" targetgroup="beginners" role="strong">
               ^^^^^^^^^^^^^^^^                        ^^^^^^^^^^^^^

وبالنسبة ل 

&ampdoubleclick;

هنا نقوم بجلب قيمة Entity References بدون أن تكون معرفة مسبقاً يجب وضع قيمة لها

<!DOCTYPE definition [
<!ENTITY red " & # 1 7 4 ;">           مثال
<!ENTITY ampdoubleclick "&ampdoubleclick;">
]>

حيث ان
"&ampdoubleclick;"

هي القيمة التي نريدها 

<!ENTITY ampdoubleclick "132131">

أي جميع هذه ال Reference يجب أن يتم تعريفها مسبقاً لنستطيع قراءة قيمتها لاحقا

<?xml version="1.0"?>
<!DOCTYPE definition [
<!ENTITY ampdoubleclick "1231">
<!ENTITY ampbuttonleft "9987">
<!ENTITY ampidhelp782 "979798">
<!ENTITY ampidhelp785 "983759">

]>
<function>
 <title>ctime</title>
 <funcsynopsis>
  <funcdef>
   <function>ctime</function>
  </funcdef>
  <paramdef>
   <parameter>time</parameter>
   <parameter role="opt">gmt</parameter>
  </paramdef>
 </funcsynopsis>
 <para>This function converts the value 
<parameter> time </parameter>,as returned by         <function>time()</function>
<function>file_mtime()</function>, into a string of the form produced by <function>time_date()</function>.
If the optional argument <parameter>gmt</parameter> is specified and non-zero,the time is returned in <parameter>gmt</parameter>.
  Otherwise, the time is given in the local time zone.
 </para>
 <para><emphasis role="strong" targetgroup="beginners">
  Related topics</emphasis>
 </para>
 <para>&ampdoubleclick; the <mousebutton>LEFT    &ampbuttonleft;</mousebutton>
  mouse button on a topic 
 </para>
 <itemizedlist>
  <listitem>
   <para><ulink url="&ampidhelp782;"><function>file_mtime()</function>built-in function</ulink>
   </para>
  </listitem>
  <listitem>
   <para><ulink url="&ampidhelp785;"><function>time()</function> built-infunction</ulink>
   </para>
  </listitem>
 </itemizedlist>
</function>

 

رابط هذا التعليق
شارك على الشبكات الإجتماعية

انضم إلى النقاش

يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.

زائر
أجب على هذا السؤال...

×   لقد أضفت محتوى بخط أو تنسيق مختلف.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   جرى استعادة المحتوى السابق..   امسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

  • إعلانات

  • تابعنا على



×
×
  • أضف...