Permalink
Browse files

Initial (git) import. Note that this was previously a Bazaar reposito…

…ry for a short time. The short history of this was exported to bazaar-log.txt.
  • Loading branch information...
0 parents commit 90e139d722921baa012c151a3149a8354698c2ab Zearin committed Jul 8, 2011
Showing with 38,270 additions and 0 deletions.
  1. +1,479 −0 XML Patterns.xpr
  2. +42 −0 bazaar-log.txt
  3. +101 −0 build.xpl
  4. +1,157 −0 build/db2xhtml.xhtml
  5. +59 −0 docbook/about/about.xml
  6. +22 −0 docbook/books/books.part.xml
  7. +54 −0 docbook/docbook.xml
  8. +164 −0 docbook/intro/introduction.part.xml
  9. +202 −0 docbook/links/links.part.xml
  10. +25 −0 docbook/patterns/abstraction/abstraction.xml
  11. +132 −0 docbook/patterns/abstraction/choice-reducing-container.xml
  12. +147 −0 docbook/patterns/abstraction/collection.xml
  13. +113 −0 docbook/patterns/abstraction/container.xml
  14. +79 −0 docbook/patterns/abstraction/domain.xml
  15. +145 −0 docbook/patterns/abstraction/optional-container.xml
  16. +169 −0 docbook/patterns/consistency/common-attributes.xml
  17. +23 −0 docbook/patterns/consistency/consistency.xml
  18. +104 −0 docbook/patterns/consistency/consistent-elements.xml
  19. +111 −0 docbook/patterns/consistency/parallel-design.xml
  20. +23 −0 docbook/patterns/doc-roots/doc-roots.xml
  21. +103 −0 docbook/patterns/doc-roots/multi-doc-types.xml
  22. +88 −0 docbook/patterns/doc-roots/multi-root.xml
  23. +116 −0 docbook/patterns/doc-roots/universal-root.xml
  24. +114 −0 docbook/patterns/flexibility/catch-all.xml
  25. +250 −0 docbook/patterns/flexibility/extensible.xml
  26. +24 −0 docbook/patterns/flexibility/flexibility.xml
  27. +83 −0 docbook/patterns/flexibility/generic.xml
  28. +109 −0 docbook/patterns/flexibility/role.xml
  29. +147 −0 docbook/patterns/metadata/head-body.xml
  30. +101 −0 docbook/patterns/metadata/metadata-data.xml
  31. +120 −0 docbook/patterns/metadata/metadata-doc.xml
  32. +97 −0 docbook/patterns/metadata/metadata-first.xml
  33. +24 −0 docbook/patterns/metadata/metadata.xml
  34. +117 −0 docbook/patterns/misc/content-type-label.xml
  35. +24 −0 docbook/patterns/misc/misc.xml
  36. +115 −0 docbook/patterns/misc/reuse-doc-types.xml
  37. +83 −0 docbook/patterns/misc/short-understandable-names.xml
  38. +163 −0 docbook/patterns/misc/use-xml.xml
  39. +103 −0 docbook/patterns/organization/declare-before.xml
  40. +93 −0 docbook/patterns/organization/envelope.xml
  41. +165 −0 docbook/patterns/organization/flyweight.xml
  42. +128 −0 docbook/patterns/organization/marketplace.xml
  43. +25 −0 docbook/patterns/organization/organization.xml
  44. +127 −0 docbook/patterns/organization/referenced-note.xml
  45. +20 −0 docbook/patterns/patterns.part.xml
  46. +1 −0 lib/com.designadmin
  47. +1 −0 lib/com.html5boilerplate
  48. +1 −0 lib/com.jquery
  49. +1 −0 lib/com.lessframework
  50. +1 −0 lib/com.meyerweb
  51. +1 −0 lib/com.modernizr
  52. +1 −0 lib/com.xmlcalabash
  53. +1 −0 lib/com.yahoo.developer
  54. +1 −0 lib/csstidy
  55. +1 −0 lib/nu.validator
  56. +1 −0 lib/org.atompub
  57. +1 −0 lib/org.dublincore
  58. +1 −0 lib/org.exproc
  59. +1 −0 lib/org.jsonml
  60. +33 −0 linkify-patterns.xsl
  61. +1 −0 mylib
  62. +473 −0 src/CatchAllElementMain.xhtml
  63. +120 −0 src/CatchAllElementPrint.xhtml
  64. +506 −0 src/ChoiceReducingContainerMain.xhtml
  65. +129 −0 src/ChoiceReducingContainerPrint.xhtml
  66. +513 −0 src/CollectionElementMain.xhtml
  67. +154 −0 src/CollectionElementPrint.xhtml
  68. +325 −0 src/Command-Offsite.xhtml
  69. +544 −0 src/CommonAttributesMain.xhtml
  70. +171 −0 src/CommonAttributesPrint.xhtml
  71. +328 −0 src/Composition-Offsite.xhtml
  72. +445 −0 src/ConsistentElementSetMain.xhtml
  73. +90 −0 src/ConsistentElementSetPrint.xhtml
  74. +472 −0 src/ContainerElementMain.xhtml
  75. +121 −0 src/ContainerElementPrint.xhtml
  76. +481 −0 src/ContentTypeLabelMain.xhtml
  77. +125 −0 src/ContentTypeLabelPrint.xhtml
  78. +453 −0 src/DeclareBeforeFirstUseMain.xhtml
  79. +98 −0 src/DeclareBeforeFirstUsePrint.xhtml
  80. +430 −0 src/DomainElementMain.xhtml
  81. +89 −0 src/DomainElementPrint.xhtml
  82. +328 −0 src/DynamicDocument-Offsite.xhtml
  83. +447 −0 src/EnvelopeMain.xhtml
  84. +89 −0 src/EnvelopePrint.xhtml
  85. +640 −0 src/ExtensibleContentModelMain.xhtml
  86. +261 −0 src/ExtensibleContentModelPrint.xhtml
  87. +335 −0 src/ExternalAssistant-Offsite.xhtml
  88. +337 −0 src/Flyweight-Offsite.xhtml
  89. +540 −0 src/FlyweightMain.xhtml
  90. +171 −0 src/FlyweightPrint.xhtml
  91. +326 −0 src/Footnote-Offsite.xhtml
  92. +326 −0 src/GeneratedText-Offsite.xhtml
  93. +437 −0 src/GenericElementMain.xhtml
  94. +77 −0 src/GenericElementPrint.xhtml
  95. +532 −0 src/HeadBodyMain.xhtml
  96. +159 −0 src/HeadBodyPrint.xhtml
  97. +325 −0 src/InformationGrouping-Offsite.xhtml
  98. +326 −0 src/Iterator-Offsite.xhtml
  99. +319 −0 src/Marker-Offsite.xhtml
  100. +491 −0 src/MarketplaceMain.xhtml
  101. +132 −0 src/MarketplacePrint.xhtml
  102. +463 −0 src/MetadataFirstMain.xhtml
  103. +103 −0 src/MetadataFirstPrint.xhtml
  104. +483 −0 src/MetadataInSeparateDocumentMain.xhtml
  105. +119 −0 src/MetadataInSeparateDocumentPrint.xhtml
  106. +325 −0 src/MultiPartFiles-Offsite.xhtml
  107. +440 −0 src/MultiRootDTDMain.xhtml
  108. +87 −0 src/MultiRootDTDPrint.xhtml
  109. +446 −0 src/MultipleDTDsMain.xhtml
  110. +98 −0 src/MultipleDTDsPrint.xhtml
  111. +509 −0 src/OptionalContainerElementMain.xhtml
  112. +139 −0 src/OptionalContainerElementPrint.xhtml
  113. +463 −0 src/ParallelDesignMain.xhtml
  114. +104 −0 src/ParallelDesignPrint.xhtml
  115. +486 −0 src/ReferencedNoteMain.xhtml
  116. +124 −0 src/ReferencedNotePrint.xhtml
  117. +464 −0 src/ReuseDocumentTypesMain.xhtml
  118. +100 −0 src/ReuseDocumentTypesPrint.xhtml
  119. +489 −0 src/RoleAttributeMain.xhtml
  120. +123 −0 src/RoleAttributePrint.xhtml
  121. +322 −0 src/RunningText-Offsite.xhtml
  122. +316 −0 src/SelfDocumentingFiles-Offsite.xhtml
  123. +467 −0 src/SeparateMetadataAndDataMain.xhtml
  124. +107 −0 src/SeparateMetadataAndDataPrint.xhtml
  125. +437 −0 src/ShortUnderstandableNamesMain.xhtml
  126. +83 −0 src/ShortUnderstandableNamesPrint.xhtml
  127. +330 −0 src/TextBlocks-Offsite.xhtml
  128. +470 −0 src/UniversalRootMain.xhtml
  129. +115 −0 src/UniversalRootPrint.xhtml
  130. +233 −0 src/Untitled.log
  131. +532 −0 src/UseXMLMain.xhtml
  132. +139 −0 src/UseXMLPrint.xhtml
  133. +332 −0 src/Wrapper-Offsite.xhtml
  134. +329 −0 src/XMLAcceptor-Offsite.xhtml
  135. +326 −0 src/XMLInOutTray-Offsite.xhtml
  136. +335 −0 src/XMLMediator-Offsite.xhtml
  137. +327 −0 src/XMLable-Offsite.xhtml
  138. +358 −0 src/about.xhtml
  139. +529 −0 src/allOffsitePatterns.xhtml
  140. +549 −0 src/alphaAllPatterns.xhtml
  141. +700 −0 src/books.xhtml
  142. +754 −0 src/categoryAllPatterns.xhtml
  143. +697 −0 src/chronoAllPatterns.xhtml
  144. +378 −0 src/index.xhtml
  145. +287 −0 src/indexPage.css
  146. +346 −0 src/intro.xhtml
  147. +371 −0 src/intro1.xhtml
  148. +341 −0 src/intro2.xhtml
  149. +429 −0 src/intro3.xhtml
  150. +394 −0 src/intro4.xhtml
  151. +434 −0 src/intro5.xhtml
  152. +514 −0 src/links.xhtml
  153. +349 −0 src/patterns.xhtml
  154. 0 src/robots.txt
  155. +398 −0 src/xmlLinks.xhtml
  156. +45 −0 static/custom-pattern-hierarchy.xml
  157. +29 −0 test.xq

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,42 @@
+------------------------------------------------------------
+revno: 6
+committer: Zearin <tony@gonk.net>
+branch nick: com.xmlpatterns
+timestamp: Thu 2009-11-19 13:12:43 -0500
+message:
+ Fixed DOCTYPE (changed loose to strict)
+------------------------------------------------------------
+revno: 5
+committer: Zearin <tony@gonk.net>
+branch nick: com.xmlpatterns
+timestamp: Thu 2009-11-19 13:10:37 -0500
+message:
+ Removed all <font> tags.
+------------------------------------------------------------
+revno: 4
+committer: Zearin <tony@gonk.net>
+branch nick: com.xmlpatterns
+timestamp: Thu 2009-11-19 13:07:05 -0500
+message:
+ Removed all <center> elements.
+------------------------------------------------------------
+revno: 3
+committer: Zearin <tony@gonk.net>
+branch nick: com.xmlpatterns
+timestamp: Thu 2009-11-19 13:05:51 -0500
+message:
+ changed DOCTYPE from HTML 4.0 to HTML 4.01
+------------------------------------------------------------
+revno: 2
+committer: Zearin <tony@gonk.net>
+branch nick: com.xmlpatterns
+timestamp: Thu 2009-11-19 12:46:31 -0500
+message:
+ Skeleton of an XProc script added.
+------------------------------------------------------------
+revno: 1
+committer: Zearin <tony@gonk.net>
+branch nick: com.xmlpatterns
+timestamp: Thu 2009-11-19 12:37:01 -0500
+message:
+ initial import
101 build.xpl
@@ -0,0 +1,101 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<?xml-stylesheet type="text/css" href="../../../Applications/oxygen/frameworks/xproc/css/xproc.css"?>
+<p:declare-step
+ xmlns:local = "#empty"
+ xmlns:p = "http://www.w3.org/ns/xproc"
+ xmlns:c = "http://www.w3.org/ns/xproc-step"
+
+ xmlns:cx = "http://xmlcalabash.com/ns/extensions"
+ xmlns:cxf = "http://xmlcalabash.com/ns/extensions/fileutils"
+
+ xmlns:pos = "http://exproc.org/proposed/steps/os"
+ xmlns:pxf = "http://exproc.org/proposed/steps/file"
+ xmlns:pxfn = "http://exproc.org/proposed/functions"
+ xmlns:pxp = "http://exproc.org/proposed/steps"
+
+ xmlns:db = "http://docbook.org/ns/docbook"
+ xmlns:xhtml = "http://www.w3.org/1999/xhtml"
+
+ xpath-version= "2.0"
+ version = "1.0"
+
+ name = "untitled"
+>
+
+
+
+ <!--
+ I/O
+ -->
+ <p:input port="source">
+ <p:document href="docbook/docbook.xml" />
+ </p:input>
+ <p:output
+ port = "result"
+ primary = "true"
+ sequence= "true"
+ />
+ <p:output
+ port = "xhtml5"
+ primary = "false"
+ sequence= "true"
+ />
+
+
+ <p:serialization
+ port ="result"
+ encoding ="UTF-8"
+ indent ="true"
+ method ="xml"
+ omit-xml-declaration="false"
+ version ="1.0"
+ />
+ <p:serialization
+ port ="xhtml5"
+ doctype-system ="about:legacy-compat"
+ encoding ="UTF-8"
+ indent ="true"
+ media-type ="application/xhtml+xml"
+ method ="xml"
+ omit-xml-declaration="false"
+ version ="1.0"
+ />
+
+
+ <!--
+ Imports
+ -->
+ <p:import href="http://xmlcalabash.com/extension/steps/library-1.0.xpl" />
+ <p:import href="http://xmlcalabash.com/extension/steps/fileutils.xpl" />
+
+
+ <!--
+ PIPELINE BODY
+ -->
+ <p:group name="body">
+ <p:xinclude />
+
+ <p:delete
+ match=" processing-instruction('oxygen') |
+ processing-instruction('xml-stylesheet') |
+ db:*[ except root() ]/@version
+ "
+ />
+
+ <p:store
+ name ="store-result"
+
+ encoding ="UTF-8"
+ href ="build/xproc-output.xml"
+ indent ="true"
+ omit-xml-declaration="false"
+ />
+
+ <p:identity>
+ <p:input port="source">
+ <p:pipe port="result" step="store-result" />
+ </p:input>
+ </p:identity>
+
+ </p:group>
+</p:declare-step>

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?oxygen RNGSchema="http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rng" type="xml"?>
+<article
+ xmlns="http://docbook.org/ns/docbook"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ version="5.0">
+
+ <title>About</title>
+
+ <para>Develop effective XML documents using structural design patterns.</para>
+
+ <section>
+ <title>Contacts</title>
+ <para>Please feel free to send email using the links below:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>Comments about the website: webmaster@xmlpatterns.com</para>
+ </listitem>
+
+ <listitem>
+ <para>Comments about the patterns: patterns@xmlpatterns.com</para>
+ </listitem>
+
+ <listitem>
+ <para>General comments and inquiries, advertising information: info@xmlpatterns.com</para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ <section>
+ <title>What They Are Saying About Us</title>
+ <para>"A very interesting approach to designing/developing XML documents. I would say that it is a must-read for any serious XML developer, not to mention a very interesting concept!!!!!" (XMLPitstop)</para>
+ <para>"XMLPatterns has really helped me get a handle on the conceptual structure of data" Derrick Bell (Secrets of the XML developer elite)</para>
+ <para>"I recently came across an oustanding reference site on design patterns for creating good XML. The site is XMLPatterns.com. The content has already been very helpful to me and I recommend this as a useful reference link." (CSharpener's Weblog)</para>
+ </section>
+ <section>
+ <title>Privacy Statement</title>
+ <para>Our basic privacy policy is simple. We will not rent, sell, or share personal information that we collect about you.</para>
+ <para>At XMLPatterns.com, we recognize that privacy of your personal information is important. Here is information on what types of personal information we receive and collect when you use and visit XMLPatterns.com, and how we safeguard your information. We never sell your personal information to third parties.</para>
+ </section>
+ <section>
+ <title>Log Files</title>
+ <para>As with most other websites, we collect and use the data contained in log files. The information in the log files include your IP (internet protocol) address, your ISP (internet service provider, such as AOL or Shaw Cable), the browser you used to visit our site (such as Internet Explorer or Firefox), the time you visited our site and which pages you visited throughout our site.</para>
+ </section>
+ <section>
+ <title>Cookies and Web Beacons</title>
+ <para>We do use cookies to store information, such as your personal preferences when you visit our site. This could include only showing you a popup once in your visit, or the ability to login to some of our features, such as forums.</para>
+ <para>We also use third party advertisements on XMLPatterns.com to support our site. Some of these advertisers may use technology such as cookies and web beacons when they advertise on our site, which will also send these advertisers (such as Google through the Google AdSense program) information including your IP address, your ISP , the browser you used to visit our site, and in some cases, whether you have Flash installed. This is generally used for geotargeting purposes (showing New York real estate ads to someone in New York, for example) or showing certain ads based on specific sites visited (such as showing cooking ads to someone who frequents cooking sites).</para>
+ </section>
+ <section>
+ <title>DoubleClick DART cookies</title>
+
+ <para>We also may use DART cookies for ad serving through Google's DoubleClick, which places a cookie on your computer when you are browsing the web and visit a site using DoubleClick advertising (including some Google AdSense advertisements). This cookie is used to serve ads specific to you and your interests (“interest based targeting”). The ads served will be targeted based on your previous browsing history (For example, if you have been viewing sites about visiting Las Vegas, you may see Las Vegas hotel advertisements when viewing a non-related site, such as on a site about hockey). DART uses "non personally identifiable information". It does NOT track personal information about you, such as your name, email address, physical address, telephone number, social security numbers, bank account numbers or credit card numbers. You can opt-out of this ad serving on all sites using this advertising by visiting <link xlink:href="http://www.doubleclick.com/privacy/dart_adserving.aspx">http://www.doubleclick.com/privacy/dart_adserving.aspx</link>.</para>
+ <para>You can chose to disable or selectively turn off our cookies or third-party cookies in your browser settings, or by managing preferences in programs such as Norton Internet Security. However, this can affect how you are able to interact with our site as well as other websites. This could include the inability to login to services or programs, such as logging into forums or accounts.</para>
+ <para>Deleting cookies does not mean you are permanently opted out of any advertising program. Unless you have settings that disallow cookies, the next time you visit a site running the advertisements, a new cookie will be added.</para>
+ <para>We have relationships with other companies that we allow to place ads on our Web pages. As a result of your visit to our site, ad server companies may collect information such as your domain type, your IP address and clickstream information and may be placing and reading cookies on your browser. If you wish to disable cookies, you may do so through your browser options.</para>
+ </section>
+</article>
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?oxygen RNGSchema="http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rng" type="xml"?>
+<part xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0">
+
+ <title>Books</title>
+
+ <chapter>
+ <title>XML Structure</title>
+ <para>…</para>
+ </chapter>
+
+ <chapter>
+ <title>Patterns</title>
+ <para>…</para>
+ </chapter>
+
+ <chapter>
+ <title>Software Design Patterns</title>
+ <para>…</para>
+ </chapter>
+</part>
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?oxygen RNGSchema="http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rng" type="xml"?>
+<book
+ xmlns="http://docbook.org/ns/docbook"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:xl="http://www.w3.org/1999/xlink"
+ version="5.0">
+
+ <info>
+ <title>XML Design Patterns</title>
+
+ <author>
+ <personname>
+ <firstname>Toivo</firstname>
+ <surname>Lainevool</surname>
+ </personname>
+
+ <email>info@xmlpatterns.com</email>
+ <uri>http://www.xmlpatterns.com</uri>
+ </author>
+
+
+ <editor>
+ <personname>
+ <firstname>Anthony</firstname>
+ <othername>M.</othername>
+ <surname>Rogers</surname>
+ </personname>
+
+ <email>zearin@users.sourceforge.net</email>
+ </editor>
+ </info>
+
+ <part>
+ <title>Home</title>
+
+ <article>
+ <title>XML Design Patterns</title>
+
+ <para>Welcome to XMLPatterns.com, the site about designing good XML structure with patterns.</para>
+ <para>There are 28 <link xl:href="patterns/patterns.part.xml">XML Design Patterns</link>. If you are new to software design patterns, a good place to start is the <link xl:href="intro/introduction.part.xml">Introductory Material</link>.</para>
+ <para>In the years since XMLPatterns.com was launched, XML has moved from being a relatively obscure technology to being a part of the everyday technologies that software developers use. Since XML design patterns are an excellent way to pass knowledge on from the experts to XML newcomers, they have become more important then ever. Designing good XML structure using DTDs, W3C XML Schema or RelaxNG does not always come easily, and hopefully the patterns on this site will be able to help out.</para>
+ <para>Please feel free to <link xl:href="mailto:info@xmlpatterns.com">email</link> feedback about this site.</para>
+ <para>Thanks for visiting!</para>
+ </article>
+ </part>
+
+ <xi:include href="intro/introduction.part.xml" />
+ <xi:include href="patterns/patterns.part.xml" />
+ <xi:include href="books/books.part.xml" />
+ <xi:include href="links/links.part.xml" />
+ <xi:include href="about/about.xml" />
+
+</book>
Oops, something went wrong.

0 comments on commit 90e139d

Please sign in to comment.