[Chameleon-dev] [Bug 742] [Chameleon - doc builder] how to handle <cr> during reprocessing of widget doc

bugzilla-daemon at www.maptools.org bugzilla-daemon at www.maptools.org
Thu Oct 21 14:20:05 EDT 2004


cthorne at dmsolutions.ca changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

------- Additional Comments From cthorne at dmsolutions.ca  2004-10-21 14:20 -------
Ok after much effort trying to be the most optimal method to define <cr> and
having issues with the slt translator, and then the css file I got it to work. :)

<xs:complexType name="CodeLine">
  <xs:element name="line" type="xs:string" maxOccurs="unbounded"/>
 <xs:attribute name="bold" type="xs:boolean" use="optional" default="false"/>

within example and tag elements had to define <cham:code> as:

<xs:element name="code" maxOccurs="unbounded">
   <xs:element name="codeblock" type="cham:CodeLine" maxOccurs="unbounded"/>

In the xslt's it the code section was defined as followes:

<!-- ~~~~~~~~~~~ -->
<!-- Code Section -->
<!-- ~~~~~~~~~~~ -->
<pre class="CodePreview">
 <xsl:for-each select="cham:code">
  <xsl:for-each select="cham:codeblock">
   <xsl:for-each select="cham:line">
    <xsl:if test="../@bold =&quot;false&quot;">
     <xsl:apply-templates /><br /></xsl:if>
   <xsl:for-each select="cham:line">
    <xsl:if test="../@bold =&quot;true&quot;">
     <span class="CodeRequired"><xsl:apply-templates /></span><br /></xsl:if>

You can currently view these changes with only the MapSize.en-ca.doc.xml since
it is currently the only valid doc with the new schema. I will be updateing
others shortly.

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the Chameleon-dev mailing list