<?xml version="1.0"?>
<?xml-stylesheet 
 href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/12261/bug">
    <title>PEAR Bug #12261</title>
    <link>http://pear.php.net/bugs/12261</link>
    <description>[Closed] xsl transformation chooses wrong value for length</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bugs/12261"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/12261/2007-10-17+17%3A20%3A51#2007-10-17+17%3A20%3A51"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/12261/2007-10-17+17%3A16%3A35#2007-10-17+17%3A16%3A35"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/12261/2007-10-17+06%3A04%3A18#2007-10-17+06%3A04%3A18"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/12261/2007-10-17+05%3A36%3A20#2007-10-17+05%3A36%3A20"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/12261/2007-10-17+03%3A05%3A09#2007-10-17+03%3A05%3A09"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/12261/2007-10-16+16%3A29%3A34#2007-10-16+16%3A29%3A34"/>
     </rdf:Seq>
    </items>
  </channel>
    <item rdf:about="http://pear.php.net/bugs/12261">
      <title>ggramlich</title>
      <link>http://pear.php.net/bugs/12261</link>
      <description><![CDATA[<pre>MDB2_Schema Documentation Problem
Reported by ggramlich
2007-10-16T19:33:59-00:00
PHP: Irrelevant OS:  Package Version: 0.8.1

Description:
------------
The xsl transformation shows the value of the first &lt;length&gt; elment for each &lt;field&gt; with a &lt;length&gt; in a &lt;table&gt;.

In MDB2_Schema/docs/schema2html.xsl change line 147 from

&lt;xsl:template name=&quot;showlength&quot;&gt;(&lt;xsl:value-of select=&quot;//length&quot;/&gt;)

to

&lt;xsl:template name=&quot;showlength&quot;&gt;(&lt;xsl:value-of select=&quot;current()&quot;/&gt;)

(or to
&lt;xsl:template name=&quot;showlength&quot;&gt;(&lt;xsl:value-of select=&quot;../length&quot;/&gt;)
)</pre>]]></description>
      <content:encoded><![CDATA[<pre>MDB2_Schema Documentation Problem
Reported by ggramlich
2007-10-16T19:33:59-00:00
PHP: Irrelevant OS:  Package Version: 0.8.1

Description:
------------
The xsl transformation shows the value of the first &lt;length&gt; elment for each &lt;field&gt; with a &lt;length&gt; in a &lt;table&gt;.

In MDB2_Schema/docs/schema2html.xsl change line 147 from

&lt;xsl:template name=&quot;showlength&quot;&gt;(&lt;xsl:value-of select=&quot;//length&quot;/&gt;)

to

&lt;xsl:template name=&quot;showlength&quot;&gt;(&lt;xsl:value-of select=&quot;current()&quot;/&gt;)

(or to
&lt;xsl:template name=&quot;showlength&quot;&gt;(&lt;xsl:value-of select=&quot;../length&quot;/&gt;)
)</pre>]]></content:encoded>
      <dc:date>2007-10-16T19:33:59-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/12261/2007-10-17+17%3A20%3A51#2007-10-17+17%3A20%3A51">
      <title>ifeghali [2007-10-17 21:20]</title>
      <link>http://pear.php.net/bugs/12261#1192656051</link>
      <description><![CDATA[<pre>This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.</pre>]]></description>
      <content:encoded><![CDATA[<pre>This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.</pre>]]></content:encoded>
      <dc:date>2007-10-17T21:20:51-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/12261/2007-10-17+17%3A16%3A35#2007-10-17+17%3A16%3A35">
      <title>ifeghali [2007-10-17 21:16]</title>
      <link>http://pear.php.net/bugs/12261#1192655795</link>
      <description><![CDATA[<pre>Yes &lt;foreign&gt; is already adopted sice 0.8.0. xml_schema_documentation.html is the most reliable source for MDB2_Schema features. Pretty much everything shown in there should be already implemented. So you may want to report a new documentation problem for the DB package.

Regarding your suggestions about the new XML elements please open a new feature request.

regards,
iGor.</pre>]]></description>
      <content:encoded><![CDATA[<pre>Yes &lt;foreign&gt; is already adopted sice 0.8.0. xml_schema_documentation.html is the most reliable source for MDB2_Schema features. Pretty much everything shown in there should be already implemented. So you may want to report a new documentation problem for the DB package.

Regarding your suggestions about the new XML elements please open a new feature request.

regards,
iGor.</pre>]]></content:encoded>
      <dc:date>2007-10-17T21:16:35-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/12261/2007-10-17+06%3A04%3A18#2007-10-17+06%3A04%3A18">
      <title>ggramlich [2007-10-17 10:04]</title>
      <link>http://pear.php.net/bugs/12261#1192615458</link>
      <description><![CDATA[<pre>I am not sure, if what is written here:
http://pear.php.net/manual/en/package.database.db-table.intro-database.php

Quote:
The XML schema used by these methods is an extension of the current MDB2_Schema DTD, extended so as to allow specification of foreign key references. This extension for foreign keys has been agreed upon for adoption in a future release of MDB2_Schema.
End quote.

is already adopted, since there is a &lt;foreign&gt; section in
http://cvs.php.net/viewvc.cgi/pear/MDB2_Schema/docs/xml_schema_documentation.html?view=co
So maybe the docs should be updated for DB_Table_Database.

Suggestions: &lt;comments&gt; and maybe &lt;description&gt; elements for &lt;index&gt; as well as for &lt;foreign&gt;.

Right now I don't see other desirable changes.</pre>]]></description>
      <content:encoded><![CDATA[<pre>I am not sure, if what is written here:
http://pear.php.net/manual/en/package.database.db-table.intro-database.php

Quote:
The XML schema used by these methods is an extension of the current MDB2_Schema DTD, extended so as to allow specification of foreign key references. This extension for foreign keys has been agreed upon for adoption in a future release of MDB2_Schema.
End quote.

is already adopted, since there is a &lt;foreign&gt; section in
http://cvs.php.net/viewvc.cgi/pear/MDB2_Schema/docs/xml_schema_documentation.html?view=co
So maybe the docs should be updated for DB_Table_Database.

Suggestions: &lt;comments&gt; and maybe &lt;description&gt; elements for &lt;index&gt; as well as for &lt;foreign&gt;.

Right now I don't see other desirable changes.</pre>]]></content:encoded>
      <dc:date>2007-10-17T10:04:18-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/12261/2007-10-17+05%3A36%3A20#2007-10-17+05%3A36%3A20">
      <title>ifeghali [2007-10-17 09:36]</title>
      <link>http://pear.php.net/bugs/12261#1192613780</link>
      <description><![CDATA[<pre>Currently our XML schema doesn't allow neither a comment or a description for indices. more here:

http://cvs.php.net/viewvc.cgi/pear/MDB2_Schema/docs/xml_schema_documentation.html?view=markup

description.schema.xml is not touched for a long time. please let me know if you want to suggest another change before I commit the fix.

regards,
iGor.</pre>]]></description>
      <content:encoded><![CDATA[<pre>Currently our XML schema doesn't allow neither a comment or a description for indices. more here:

http://cvs.php.net/viewvc.cgi/pear/MDB2_Schema/docs/xml_schema_documentation.html?view=markup

description.schema.xml is not touched for a long time. please let me know if you want to suggest another change before I commit the fix.

regards,
iGor.</pre>]]></content:encoded>
      <dc:date>2007-10-17T09:36:20-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/12261/2007-10-17+03%3A05%3A09#2007-10-17+03%3A05%3A09">
      <title>ggramlich [2007-10-17 07:05]</title>
      <link>http://pear.php.net/bugs/12261#1192604709</link>
      <description><![CDATA[<pre>Thanks for the quick fix. I re-opened the bug, instead of creating a new one:

The same problem applies to MDB2_Schema/docs/MDB.xsl line 90.

Change &quot;//length&quot; to &quot;current()&quot;.

One more point about documentation: neither the MDB.dtd nor the MDB.xsd allow &lt;comments&gt; for &lt;index&gt;, but the description.schema.xml uses &lt;comments&gt; and schema2html.xsl renders it. I think, the dtd and xsd should be changed accordingly. Maybe even a &lt;description&gt; should be allowed for &lt;index&gt;.</pre>]]></description>
      <content:encoded><![CDATA[<pre>Thanks for the quick fix. I re-opened the bug, instead of creating a new one:

The same problem applies to MDB2_Schema/docs/MDB.xsl line 90.

Change &quot;//length&quot; to &quot;current()&quot;.

One more point about documentation: neither the MDB.dtd nor the MDB.xsd allow &lt;comments&gt; for &lt;index&gt;, but the description.schema.xml uses &lt;comments&gt; and schema2html.xsl renders it. I think, the dtd and xsd should be changed accordingly. Maybe even a &lt;description&gt; should be allowed for &lt;index&gt;.</pre>]]></content:encoded>
      <dc:date>2007-10-17T07:05:09-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/12261/2007-10-16+16%3A29%3A34#2007-10-16+16%3A29%3A34">
      <title>ifeghali [2007-10-16 20:29]</title>
      <link>http://pear.php.net/bugs/12261#1192566574</link>
      <description><![CDATA[<pre>This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.</pre>]]></description>
      <content:encoded><![CDATA[<pre>This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.</pre>]]></content:encoded>
      <dc:date>2007-10-16T20:29:34-00:00</dc:date>
    </item>
</rdf:RDF>