<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Script to Download 11gR2 Documentation</title>
	<atom:link href="http://antognini.ch/2009/09/script-to-download-11gr2-documentation/feed/" rel="self" type="application/rss+xml" />
	<link>http://antognini.ch/2009/09/script-to-download-11gr2-documentation/</link>
	<description></description>
	<lastBuildDate>Fri, 27 Jan 2012 07:31:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ludovic</title>
		<link>http://antognini.ch/2009/09/script-to-download-11gr2-documentation/comment-page-1/#comment-5862</link>
		<dc:creator>Ludovic</dc:creator>
		<pubDate>Mon, 16 Nov 2009 15:09:01 +0000</pubDate>
		<guid isPermaLink="false">http://antognini.ch/?p=673#comment-5862</guid>
		<description>very useful, thanks for the sharing.</description>
		<content:encoded><![CDATA[<p>very useful, thanks for the sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Log Buffer #161: a Carnival of the Vanities for DBAs &#124; Pythian Group Blog</title>
		<link>http://antognini.ch/2009/09/script-to-download-11gr2-documentation/comment-page-1/#comment-4749</link>
		<dc:creator>Log Buffer #161: a Carnival of the Vanities for DBAs &#124; Pythian Group Blog</dc:creator>
		<pubDate>Fri, 11 Sep 2009 17:50:40 +0000</pubDate>
		<guid isPermaLink="false">http://antognini.ch/?p=673#comment-4749</guid>
		<description>[...] to start looking into the details. Christian Antognini&#8217;s Deferred Segment Creation and his Script to Download 11gR2 Documentation are useful articles to get going. If you need help upgrading, read Get Upgrading: Steps To Upgrade [...]</description>
		<content:encoded><![CDATA[<p>[...] to start looking into the details. Christian Antognini&#8217;s Deferred Segment Creation and his Script to Download 11gR2 Documentation are useful articles to get going. If you need help upgrading, read Get Upgrading: Steps To Upgrade [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://antognini.ch/2009/09/script-to-download-11gr2-documentation/comment-page-1/#comment-4733</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Thu, 10 Sep 2009 19:37:41 +0000</pubDate>
		<guid isPermaLink="false">http://antognini.ch/?p=673#comment-4733</guid>
		<description>I have created a shell script to download and rename all the 10g2 PDF docs - it&#039;s available &lt;a href=&quot;https://docs.google.com/Doc?docid=0AVxdHiED5_YJZGN0ZzI0bXRfMWZjYm1wOWY1&amp;hl=en&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; (tested on Redhat Linux).

Thanks for the XSL tutorial Chris ;-) It&#039;s certainly a lot easier than trying to remember the arcane syntax of regexps!</description>
		<content:encoded><![CDATA[<p>I have created a shell script to download and rename all the 10g2 PDF docs &#8211; it&#8217;s available <a href="https://docs.google.com/Doc?docid=0AVxdHiED5_YJZGN0ZzI0bXRfMWZjYm1wOWY1&amp;hl=en" rel="nofollow">here</a> (tested on Redhat Linux).</p>
<p>Thanks for the XSL tutorial Chris ;-) It&#8217;s certainly a lot easier than trying to remember the arcane syntax of regexps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Antognini</title>
		<link>http://antognini.ch/2009/09/script-to-download-11gr2-documentation/comment-page-1/#comment-4720</link>
		<dc:creator>Christian Antognini</dc:creator>
		<pubDate>Thu, 10 Sep 2009 06:38:26 +0000</pubDate>
		<guid isPermaLink="false">http://antognini.ch/?p=673#comment-4720</guid>
		<description>For the people like Brett that are interested in doing some similar with other versions of the documentation, here some details on how I generated the script:

1) opened the master book list in Firefox
2) selected the table containing the links to the PDF and executed &quot;View Selection Source&quot;
3) copied/pasted the table body in a file named doc1.xml
4) removed some garbage with the following command: grep -e tbody -e to_pdf doc1.xml &#124; sed &#039;s/%2F/\//&#039; &gt; doc2.xml
5) applied the XSL transformation that you find below to the file named doc2.xml (I used &lt;a href=&quot;http://www.codeplex.com/xmlnotepad&quot; rel=&quot;nofollow&quot;&gt;XML Notepad 2007&lt;/a&gt; for that)
6) copied/pasted the output in another file and did some editing (e.g. removed duplicates of mkdir, changed the name of 3 files having a too long name...)

HTH
Chris

&lt;pre&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;
&lt;xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt;
&lt;xsl:output method=&quot;html&quot; encoding=&quot;UTF-8&quot;/&gt;
&lt;xsl:template match=&quot;/tbody&quot;&gt;
  &lt;xsl:for-each select=&quot;a&quot;&gt;
    mkdir &lt;xsl:value-of select=&quot;substring-before(substring-after(@href,&#039;=&#039;),&#039;.&#039;)&quot;/&gt;
    &lt;br/&gt;
  &lt;/xsl:for-each&gt;
  &lt;xsl:for-each select=&quot;a&quot;&gt;
    wget -nv
         http://download.oracle.com/docs/cd/E11882_01/&lt;xsl:value-of select=&quot;substring-before(substring-after(@href,&#039;=&#039;),&#039;&amp;&#039;)&quot;/&gt;
         -O &quot;&lt;xsl:value-of select=&quot;substring-before(substring-after(@href,&#039;=&#039;),&#039;.&#039;)&quot;/&gt;/&lt;xsl:value-of select=&quot;translate(substring-after(@title,&#039;PDF file of &#039;),&#039;*/&#039;,&#039;&#039;)&quot;/&gt;.pdf&quot;
    &lt;br/&gt;
  &lt;/xsl:for-each&gt;
&lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>For the people like Brett that are interested in doing some similar with other versions of the documentation, here some details on how I generated the script:</p>
<p>1) opened the master book list in Firefox<br />
2) selected the table containing the links to the PDF and executed &#8220;View Selection Source&#8221;<br />
3) copied/pasted the table body in a file named doc1.xml<br />
4) removed some garbage with the following command: grep -e tbody -e to_pdf doc1.xml | sed &#8217;s/%2F/\//&#8217; > doc2.xml<br />
5) applied the XSL transformation that you find below to the file named doc2.xml (I used <a href="http://www.codeplex.com/xmlnotepad" rel="nofollow">XML Notepad 2007</a> for that)<br />
6) copied/pasted the output in another file and did some editing (e.g. removed duplicates of mkdir, changed the name of 3 files having a too long name&#8230;)</p>
<p>HTH<br />
Chris</p>
<p><pre>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;
&lt;xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt;
&lt;xsl:output method=&quot;html&quot; encoding=&quot;UTF-8&quot;/&gt;
&lt;xsl:template match=&quot;/tbody&quot;&gt;
  &lt;xsl:for-each select=&quot;a&quot;&gt;
    mkdir &lt;xsl:value-of select=&quot;substring-before(substring-after(@href,&#039;=&#039;),&#039;.&#039;)&quot;/&gt;
    &lt;br/&gt;
  &lt;/xsl:for-each&gt;
  &lt;xsl:for-each select=&quot;a&quot;&gt;
    wget -nv
         http://download.oracle.com/docs/cd/E11882_01/&lt;xsl:value-of select=&quot;substring-before(substring-after(@href,&#039;=&#039;),&#039;&amp;amp;&#039;)&quot;/&gt;
         -O &quot;&lt;xsl:value-of select=&quot;substring-before(substring-after(@href,&#039;=&#039;),&#039;.&#039;)&quot;/&gt;/&lt;xsl:value-of select=&quot;translate(substring-after(@title,&#039;PDF file of &#039;),&#039;*/&#039;,&#039;&#039;)&quot;/&gt;.pdf&quot;
    &lt;br/&gt;
  &lt;/xsl:for-each&gt;
&lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;
</pre></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ricky</title>
		<link>http://antognini.ch/2009/09/script-to-download-11gr2-documentation/comment-page-1/#comment-4719</link>
		<dc:creator>ricky</dc:creator>
		<pubDate>Thu, 10 Sep 2009 02:43:46 +0000</pubDate>
		<guid isPermaLink="false">http://antognini.ch/?p=673#comment-4719</guid>
		<description>this is pretty cool and useful.

thanks for the sharing.</description>
		<content:encoded><![CDATA[<p>this is pretty cool and useful.</p>
<p>thanks for the sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philipp</title>
		<link>http://antognini.ch/2009/09/script-to-download-11gr2-documentation/comment-page-1/#comment-4713</link>
		<dc:creator>Philipp</dc:creator>
		<pubDate>Wed, 09 Sep 2009 23:15:52 +0000</pubDate>
		<guid isPermaLink="false">http://antognini.ch/?p=673#comment-4713</guid>
		<description>Ciao Chris/Dani,
Cool stuff, thanks! Runs perfectly on my Mac ;-)</description>
		<content:encoded><![CDATA[<p>Ciao Chris/Dani,<br />
Cool stuff, thanks! Runs perfectly on my Mac ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Antognini</title>
		<link>http://antognini.ch/2009/09/script-to-download-11gr2-documentation/comment-page-1/#comment-4712</link>
		<dc:creator>Christian Antognini</dc:creator>
		<pubDate>Wed, 09 Sep 2009 22:35:04 +0000</pubDate>
		<guid isPermaLink="false">http://antognini.ch/?p=673#comment-4712</guid>
		<description>Hi Brett

Thank you for the feedback! I corrected the script. BTW, tomorrow I should be able to post the XLS code... So, stay tuned ;-)

Cheers,
Chris</description>
		<content:encoded><![CDATA[<p>Hi Brett</p>
<p>Thank you for the feedback! I corrected the script. BTW, tomorrow I should be able to post the XLS code&#8230; So, stay tuned ;-)</p>
<p>Cheers,<br />
Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://antognini.ch/2009/09/script-to-download-11gr2-documentation/comment-page-1/#comment-4711</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Wed, 09 Sep 2009 22:21:04 +0000</pubDate>
		<guid isPermaLink="false">http://antognini.ch/?p=673#comment-4711</guid>
		<description>Dani&#039;s script has a minor problem - the word &quot;Reference&quot; has been corrupted to &quot;Refemvce&quot;. Thus many titles of reference documents are corrupted. A corrected version can be found &lt;a href=&quot;https://docs.google.com/Doc?docid=0AVxdHiED5_YJZGN0ZzI0bXRfMHQ4Njk5eGZ2&amp;hl=en&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Dani&#8217;s script has a minor problem &#8211; the word &#8220;Reference&#8221; has been corrupted to &#8220;Refemvce&#8221;. Thus many titles of reference documents are corrupted. A corrected version can be found <a href="https://docs.google.com/Doc?docid=0AVxdHiED5_YJZGN0ZzI0bXRfMHQ4Njk5eGZ2&amp;hl=en" rel="nofollow">here</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://antognini.ch/2009/09/script-to-download-11gr2-documentation/comment-page-1/#comment-4710</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Wed, 09 Sep 2009 21:23:13 +0000</pubDate>
		<guid isPermaLink="false">http://antognini.ch/?p=673#comment-4710</guid>
		<description>Christian, Thanks, this is great. If you are prepared to share your XSL code, I would create a similar script for 10g2 and then share it with others.</description>
		<content:encoded><![CDATA[<p>Christian, Thanks, this is great. If you are prepared to share your XSL code, I would create a similar script for 10g2 and then share it with others.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

