Extraneous TR tags

We are experiencing a company wide problem in Dreamweaver CS4 when opening saved files.  DW will, at times, insert <tr  > before some <td> tags.  This occurs when the file is opened, we do not have any of the code rewriting options enabled.  A code snippet is below:
<table border="0" cellpadding="2" cellspacing="1">
<cfoutput query="qry">
<cfif qry.currentrow MOD 2 EQ 0>
    <tr class="evenrow">
<cfelse>
    <tr class="oddrow">
</cfif>
        <td>Col 1</td>
    <cfif somevariable EQ 1>
        <td>Value X</td>
    <cfelse>
        <td>Value Y</td>
    </cfif>
        <td>Col 2</td>
        <cfif othervariable EQ 1><td>Col 3</td></cfif>
    </tr>
</cfoutput>
</table>
If this snippet is in any saved file, when opening the file the code will become:
<table border="0" cellpadding="2" cellspacing="1">
<cfoutput query="qry">
<cfif qry.currentrow MOD 2 EQ 0>
    <tr class="evenrow">
<cfelse>
    <tr class="oddrow">
</cfif>
        <td>Col 1</td>
    <cfif somevariable EQ 1>
        <tr  ><td>Value X</td>
    <cfelse>
        <td>Value Y</td>
    </cfif>
        <td>Col 2</td>
        <cfif othervariable EQ 1><tr  ><td>Col 3</td></cfif>
    </tr>
</cfoutput>
</table>
Note the <tr  >, it is always a TR tag followed by 2 spaces.
Are there any settings/preferences in DW that can be set to disable this?  We are using DW primarily for editing ColdFusion files, and have only seen the issue when editing CF files (.cfm, .cfc).  It is becoming very difficult to catch this as it occurs immediately when the file is opened, and it does not show that the file has been modified - even though the extra Tr tags are added.
Dreamweaver CS4 (Version 10.0 Build 4117)
Any help would be much appreciated.

We are experiencing a company wide problem in Dreamweaver CS4 when opening saved files.  DW will, at times, insert <tr  > before some <td> tags.  This occurs when the file is opened, we do not have any of the code rewriting options enabled.  A code snippet is below: 
<table border="0" cellpadding="2" cellspacing="1">
<cfoutput query="qry">
<cfif qry.currentrow MOD 2 EQ 0>
    <tr class="evenrow">
<cfelse>
    <tr class="oddrow">
</cfif>
        <td>Col 1</td>
    <cfif somevariable EQ 1>
        <td>Value X</td>
    <cfelse>
        <td>Value Y</td>
    </cfif>
        <td>Col 2</td>
        <cfif othervariable EQ 1><td>Col 3</td></cfif>
    </tr>
</cfoutput>
</table>
If this snippet is in any saved file, when opening the file the code will become:
<table border="0" cellpadding="2" cellspacing="1">
<cfoutput query="qry">
<cfif qry.currentrow MOD 2 EQ 0>
    <tr class="evenrow">
<cfelse>
    <tr class="oddrow">
</cfif>
        <td>Col 1</td>
    <cfif somevariable EQ 1>
        <tr  ><td>Value X</td>
    <cfelse>
        <td>Value Y</td>
    </cfif>
        <td>Col 2</td>
        <cfif othervariable EQ 1><tr  ><td>Col 3</td></cfif>
    </tr>
</cfoutput>
</table>
Note the <tr  >, it is always a TR tag followed by 2 spaces.
Are there any settings/preferences in DW that can be set to disable this?  We are using DW primarily for editing ColdFusion files, and have only seen the issue when editing CF files (.cfm, .cfc).  It is becoming very difficult to catch this as it occurs immediately when the file is opened, and it does not show that the file has been modified - even though the extra Tr tags are added.
Dreamweaver CS4 (Version 10.0 Build 4117)
Any help would be much appreciated.
The problem is the tag nesting between server-side and client-side tags sometimes confuses DW. The workaround is to restructure your code a little to help DW out.
In this case, rearranging this markup:
<cfif qry.currentrow MOD 2 EQ 0>
    <tr class="evenrow">
<cfelse>
    <tr class="oddrow">
</cfif>
To move the CFML markup inside the <tr> tag:
  <tr class="<cfif qry.currentrow MOD 2 EQ 0>evenrow<cfelse>oddrow</cfif>">
seems to fix the problem.
HTH,
Randy

Similar Messages

  • Formatting XML using DBMS_XMLGEN

    Hi.
    Having Problems with generating XML out of a query using nested table types
    -- Heres a test case
    drop type test_tab
    drop type test_type
    drop type sub_type_tab
    drop type sub_type
    create or replace type sub_type as object ( "@a" varchar2(10), "@b" varchar2(10) );
    create or replace type sub_type_tab as table of sub_type;
    create or replace type test_type as object ( "@c" VARCHAR2(10), test sub_type_tab );
    CREATE OR REPLACE TYPE test_tab AS TABLE OF test_type;
    CREATE OR REPLACE VIEW test_view OF test_type
    WITH OBJECT IDENTIFIER ("@c")
    AS
    SELECT
    'C',
    CAST(MULTISET(SELECT 'A', 'B' FROM DUAL) AS sub_type_tab)
    FROM dual
    The resultant XML out of DBMS_XMLGEN.GETXML is :
    <?xml version="1.0"?>
    <ROWSET>
    <ROW c = "C">
    <TEST>
    <SUB_TYPE a="A" b="B"/>
    </TEST>
    </ROW>
    </ROWSET>
    As you can see as a consequence of the column collection type alias in the view
    i have an extraneous <TEST> tag.
    Does anyone know how I can remove this tag entry?
    Thanks in advance

    Marco,
    I tryed to work with dbms_xslprocessor.clob2file,
    that works good,
    but what is in this matter with encoding UTF-8 ?
    in my understandig, the xmltyp created should be UTF8 (16),
    but when open the xml-file in xmlSpy as UTF-8,
    it is not well ( german caracter like Ä, Ö .. ):
    my dbms is
    NLS_CHARACTERSET = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET = AL16UTF16
    NLS_RDBMS_VERSION = 10.2.0.1.0
    -- test:
    create table nh_test ( s0 number, s1 varchar2(20) ) ;
    insert into nh_test (select 1,'hallo' from dual );
    insert into nh_test (select 2,'straße' from dual );
    insert into nh_test (select 3,'mäckie' from dual );
    insert into nh_test (select 4,'euro_€' from dual );
    commit;
    select * from nh_test ;
    S0     S1
    1     hallo
    1     hallo
    2     straße
    3     mäckie
    4     euro_€
    declare
    rc sys_refcursor;
    begin
    open rc FOR SELECT * FROM ( SELECT s0,s1 from nh_test );
    dbms_xslprocessor.clob2file( xmltype( rc ).getclobval( ) , 'XML_EXPORT_DIR','my_xml_file.xml');
    end;
    ( its the same when using output with DBMS_XMLDOM.WRITETOFILE )
    open in xmlSpy is:
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
    <S0>1</S0>
    <S1>hallo</S1>
    </ROW>
    <ROW>
    <S0>2</S0>
    <S1>straޥ</S1>
    </ROW>
    <ROW>
    <S0>3</S0>
    <S1>m㢫ie</S1>
    </ROW>
    <ROW>
    <S0>4</S0>
    <S1>euro_€</S1>
    </ROW>
    </ROWSET>
    regards
    Norbert

  • Detecting Change in Elements between Versions of XML Doc

    Hi There
    I have a structured XML Schema based table in XMLDB 9.2.0.4 and am trying to detect when a non-repeating element off the root element changes (audit).
    I have created a row level update trigger and each time one element is changed via UPDATEXML two or three other elements are detected as changed. I am wondering if I have some sort of DOM fidelity issue here and perhaps my trigger is not the best for detecting this. we use XS:ANY elements in the XML schema and I know that there appears to be space injection into the element tag content and also extraneous namespace tags on tags in the XS:ANY elements.
    Can you give me any advice on my schema XSD and perhaps my trigger. Maybe what I am trying to do is not possible until 10g version of XMLDB.
    XSD
    ====
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- edited with XMLSpy v2005 U (http://www.xmlspy.com) by Martyn J Ricks (University of Tasmania) -->
    <!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by Grant John Hyland (University of Tasmania) -->
    <xs:schema xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns="http://www.utas.edu.au/cu" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.utas.edu.au/cu" elementFormDefault="qualified" attributeFormDefault="unqualified" xdb:storeVarrayAsTable="true">
         <xs:element name="UnitSetYear" type="UnitSetYearType" xdb:defaultTable="CU_UNIT_SET_YEARS_XML">
              <xs:annotation>
                   <xs:documentation>Comment describing your root element</xs:documentation>
              </xs:annotation>
         </xs:element>
         <xs:complexType name="OfferedInCoursesType" xdb:SQLType="CU_UN_OFFEREDINCRSS_TYP">
              <xs:sequence>
                   <xs:element name="Course" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="OFFERED_IN_COURSE" xdb:SQLType="VARCHAR2" xdb:SQLCollType="CU_UN_OFFERED_IN_CRS_COLTYP">
                        <xs:annotation>
                             <xs:documentation>Unit set is involved in these courses, as specified in the quality assurance manual.</xs:documentation>
                        </xs:annotation>
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:length value="3"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="RecommendedTextType" mixed="true" xdb:SQLType="CU_UN_RECOMMENDEDTEXT_TYP">
              <xs:sequence>
                   <xs:any namespace="##any" processContents="skip" maxOccurs="unbounded" xdb:SQLType="VARCHAR2"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="RecommendedTextsType" xdb:SQLType="CU_UN_RECOMMENDEDTEXTS_TYP">
              <xs:sequence>
                   <xs:element name="RecommendedText" type="RecommendedTextType" minOccurs="0" maxOccurs="unbounded" xdb:SQLCollType="CU_UN_RECOMMEND_TEXT_COLTYP" xdb:SQLName="RECOMMENDED_TEXT"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="RequiredTextType" mixed="true" xdb:SQLType="CU_UN_REQUIREDTEXT_TYP">
              <xs:sequence>
                   <xs:any namespace="##any" processContents="skip" maxOccurs="unbounded" xdb:SQLType="VARCHAR2"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="RequiredTextsType" xdb:SQLType="CU_UN_REQUIREDTEXTS_TYP">
              <xs:sequence>
                   <xs:element name="RequiredText" type="RequiredTextType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="REQUIRED_TEXT" xdb:SQLCollType="CU_UN_REQUIRED_TEXT_COLTYP">
                        <xs:annotation>
                             <xs:documentation>Prescribed texts</xs:documentation>
                        </xs:annotation>
                   </xs:element>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="BAMajorsType" xdb:SQLType="CU_UN_BAMAJORS_TYP">
              <xs:sequence>
                   <xs:element name="BAMajor" maxOccurs="unbounded" xdb:SQLName="BA_MAJOR" xdb:SQLType="VARCHAR2" xdb:SQLCollType="CU_UN_BA_MAJORS_COLTYP">
                        <xs:annotation>
                             <xs:documentation>Majors that this unit applies to in the BA degree course</xs:documentation>
                        </xs:annotation>
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:maxLength value="20"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="AssessType" mixed="true" xdb:SQLType="CU_UN_ASSESS_TYPE">
              <xs:sequence>
                   <xs:any namespace="##any" processContents="skip" maxOccurs="unbounded"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="ReqTextType" mixed="true" xdb:SQLType="CU_UN_REQTEXT_TYP">
              <xs:sequence>
                   <xs:any namespace="##any" processContents="skip" maxOccurs="unbounded"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="RequisiteType" xdb:SQLType="CU_UN_REQUISITE_TYP">
              <xs:sequence>
                   <xs:element name="ReqType" xdb:SQLName="REQUISITE_TYPE" xdb:SQLType="VARCHAR2">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:maxLength value="6"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="ReqText" type="ReqTextType" xdb:SQLName="REQUISITE_TEXT"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="RequisitesType" xdb:SQLType="CU_UN_REQUISITES_TYP">
              <xs:sequence>
                   <xs:element name="Requisite" type="RequisiteType" minOccurs="0" maxOccurs="unbounded" xdb:SQLName="REQUISITE" xdb:SQLCollType="CU_UN_REQUISITE_COLTYP"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="TeachPatternType" mixed="true" xdb:SQLType="CU_UN_TEACHPATTERN_TYP">
              <xs:sequence>
                   <xs:any namespace="##any" processContents="skip" maxOccurs="unbounded" xdb:SQLType="VARCHAR2"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="DescType" mixed="true" xdb:SQLType="CU_UN_DESC_TYP">
              <xs:sequence>
                   <xs:any namespace="##any" processContents="skip" maxOccurs="unbounded"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="SpecialNoteType" mixed="true" xdb:SQLType="CU_UN_SPECIALNOTE_TYP">
              <xs:sequence>
                   <xs:any namespace="##any" processContents="skip" maxOccurs="unbounded"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="UnitSetYearType" xdb:SQLType="CU_UN_UNITSETYEAR_TYP">
              <xs:sequence>
                   <xs:element name="UnitSetID" xdb:SQLName="UNITSET_ID">
                        <xs:simpleType>
                             <xs:restriction base="xs:integer">
                                  <xs:minInclusive value="10000000"/>
                                  <xs:totalDigits value="8"/>
                                  <xs:fractionDigits value="0"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="Year" xdb:SQLName="YEAR">
                        <xs:annotation>
                             <xs:documentation>The academic year of the unit set</xs:documentation>
                        </xs:annotation>
                        <xs:simpleType>
                             <xs:restriction base="xs:integer">
                                  <xs:totalDigits value="4"/>
                                  <xs:fractionDigits value="0"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="UnitSetLabel" xdb:SQLName="SET_LABEL" xdb:SQLType="VARCHAR2">
                        <xs:annotation>
                             <xs:documentation>The label that will be used as terms of reference for the unit set</xs:documentation>
                        </xs:annotation>
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:maxLength value="20"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="UnitSetTitle" xdb:SQLName="UNIT_TITLE" xdb:SQLType="VARCHAR2">
                        <xs:annotation>
                             <xs:documentation>The Unit Set Title for the Year</xs:documentation>
                        </xs:annotation>
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:maxLength value="100"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="Offered" xdb:SQLName="OFFERED" xdb:SQLType="VARCHAR2">
                        <xs:annotation>
                             <xs:documentation>Is the unit on offer this year (Y/N). Defaults to Y.</xs:documentation>
                        </xs:annotation>
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:length value="1"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="SpecialNote" type="SpecialNoteType" xdb:SQLName="SPECIAL_NOTE"/>
                   <xs:element name="InWeb" xdb:SQLName="IN_WEB" xdb:SQLType="VARCHAR2">
                        <xs:annotation>
                             <xs:documentation>Should this Unit Set appear on the web.</xs:documentation>
                        </xs:annotation>
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:length value="1"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="Desc" type="DescType" xdb:SQLName="DESCRIPTION" xdb:SQLType="CLOB">
                        <xs:annotation>
                             <xs:documentation>Short description of Unit content</xs:documentation>
                        </xs:annotation>
                   </xs:element>
                   <xs:element name="Staff" xdb:SQLName="STAFF" xdb:SQLType="VARCHAR2">
                        <xs:annotation>
                             <xs:documentation>Staff teaching this unit.</xs:documentation>
                        </xs:annotation>
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:maxLength value="500"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="TeachPattern" type="TeachPatternType" xdb:SQLName="TEACHING_PATTERN">
                        <xs:annotation>
                             <xs:documentation>Number of lectures , tutorials, laboratories and workshops</xs:documentation>
                        </xs:annotation>
                   </xs:element>
                   <xs:element name="Requisites" type="RequisitesType" xdb:SQLName="REQUISITES"/>
                   <xs:element name="Assess" type="AssessType" xdb:SQLName="ASSESSMENT">
                        <xs:annotation>
                             <xs:documentation>Mode of assessment and percentages</xs:documentation>
                        </xs:annotation>
                   </xs:element>
                   <xs:element name="BAMajors" type="BAMajorsType" minOccurs="0" xdb:SQLName="BA_MAJORS"/>
                   <xs:element name="RequiredTexts" type="RequiredTextsType" xdb:SQLName="REQUIRED_TEXTS"/>
                   <xs:element name="RecommendedTexts" type="RecommendedTextsType" xdb:SQLName="RECOMMENDED_TEXTS"/>
                   <xs:element name="OfferedInCourses" type="OfferedInCoursesType" xdb:SQLName="OFFERED_IN_COURSES"/>
              </xs:sequence>
         </xs:complexType>
    </xs:schema>
    Trigger
    ========
    CREATE OR REPLACE TRIGGER CU_UNITSETYR_XML_AUDR_TRG
    AFTER DELETE OR UPDATE
    ON CU_UNIT_SET_YEARS_XML
    FOR EACH ROW
    DECLARE
    v_user VARCHAR2(30);
    v_old_xml_doc xmltype;
    v_new_xml_doc xmltype;
    v_old_unitset_id cu_unit_sets.unitset_id%TYPE;
    v_old_offered VARCHAR2(1);
    v_new_offered VARCHAR2(1);
    v_old_inweb VARCHAR2(1);
    v_new_inweb VARCHAR2(1);
    v_old_title VARCHAR2(100);
    v_new_title VARCHAR2(100);
    v_old_staff VARCHAR2(500);
    v_new_staff VARCHAR2(500);
    v_old_special_note xmltype;
    v_new_special_note xmltype;
    v_old_unit_desc xmltype;
    v_new_unit_desc xmltype;
    v_old_teach_pattern xmltype;
    v_new_teach_pattern xmltype;
    v_old_assess xmltype;
    v_new_assess xmltype;
    v_old_offered_in_courses xmltype;
    v_new_offered_in_courses xmltype;
    v_old_BA_Majors xmltype;
    v_new_BA_Majors xmltype;
    v_old_req_texts xmltype;
    v_new_req_texts xmltype;
    v_old_reco_texts xmltype;
    v_new_reco_texts xmltype;
    v_old_year INTEGER;
    v_mod_type VARCHAR2(1);
    BEGIN
    -- Establish the username from the CUM_PORTAL_APP context
    v_user := sys_context('CUM_PORTAL_APP','CURRENT_USER');
    IF (v_user IS NULL) THEN
    -- Means that CUM Portal App did not make the change
    v_user := USER;
    END IF;
    -- Determine modification type
    IF (updating) THEN
    v_mod_type := 'U';
    ELSIF (deleting) THEN
    v_mod_type := 'D';
    END IF;
    v_old_xml_doc := :OLD.sys_nc_rowinfo$;
    v_new_xml_doc := :NEW.sys_nc_rowinfo$;
    SELECT extractvalue(v_old_xml_doc, '/UnitSetYear/UnitSetID'),
    extractvalue(v_old_xml_doc, '/UnitSetYear/Year'),
    extractvalue(v_old_xml_doc, '/UnitSetYear/Offered'),
    extractvalue(v_new_xml_doc, '/UnitSetYear/Offered'),
    extractvalue(v_old_xml_doc, '/UnitSetYear/UnitSetTitle'),
    extractvalue(v_new_xml_doc, '/UnitSetYear/UnitSetTitle'),
    extract(v_old_xml_doc, '/UnitSetYear/SpecialNote'),
    extract(v_new_xml_doc, '/UnitSetYear/SpecialNote'),
    extract(v_old_xml_doc, '/UnitSetYear/Desc'),
    extract(v_new_xml_doc, '/UnitSetYear/Desc'),
    extractvalue(v_old_xml_doc, '/UnitSetYear/Staff'),
    extractvalue(v_new_xml_doc, '/UnitSetYear/Staff'),
    extractvalue(v_old_xml_doc, '/UnitSetYear/InWeb'),
    extractvalue(v_new_xml_doc, '/UnitSetYear/InWeb'),
    extract(v_old_xml_doc, '/UnitSetYear/TeachPattern'),
    extract(v_new_xml_doc, '/UnitSetYear/TeachPattern'),
    extract(v_old_xml_doc, '/UnitSetYear/Assess'),
    extract(v_new_xml_doc, '/UnitSetYear/Assess'),
    extract(v_old_xml_doc, '/UnitSetYear/OfferedInCourses'),
    extract(v_new_xml_doc, '/UnitSetYear/OfferedInCourses'),
    extract(v_old_xml_doc, '/UnitSetYear/BAMajors'),
    extract(v_new_xml_doc, '/UnitSetYear/BAMajors'),
    extract(v_old_xml_doc, '/UnitSetYear/RequiredTexts'),
    extract(v_new_xml_doc, '/UnitSetYear/RequiredTexts'),
    extract(v_old_xml_doc, '/UnitSetYear/RecommendedTexts'),
    extract(v_new_xml_doc, '/UnitSetYear/RecommendedTexts')
    INTO v_old_unitset_id,
    v_old_year,
    v_old_offered,
    v_new_offered,
    v_old_title,
    v_new_title,
    v_old_special_note,
    v_new_special_note,
    v_old_unit_desc,
    v_new_unit_desc,
    v_old_staff,
    v_new_staff,
    v_old_inweb,
    v_new_inweb,
    v_old_teach_pattern,
    v_new_teach_pattern,
    v_old_assess,
    v_new_assess,
    v_old_offered_in_courses,
    v_new_offered_in_courses,
    v_old_BA_Majors,
    v_new_BA_Majors,
    v_old_req_texts,
    v_new_req_texts,
    v_old_reco_texts,
    v_new_reco_texts
    FROM dual;
    IF (v_old_unitset_id IS NOT NULL AND v_old_year IS NOT NULL) THEN
    -- Had to do this to avoid problems with create resource statement which on insert appears
    -- to manifest itself as an update of a null document????
    IF (updating OR deleting) THEN
    -- Audit the XML document
    INSERT INTO cu_unit_set_years_xml_audit
    (unitset_id, YEAR, xml_doc, mod_type, mod_by, mod_date)
    VALUES
    (v_old_unitset_id,
    v_old_year,
    v_old_xml_doc.getclobval(), -- convert to clob
    v_mod_type,
    USER,
    SYSDATE);
    END IF;
    IF (updating AND v_old_offered != v_new_offered) THEN
    cu_events_pkg.log_event(p_event_type => 'USOFF',
    p_enacted_by => v_user,
    p_subject_type => 'UNITSETX',
    p_subject_id => to_char(v_old_unitset_id),
    p_subject_year => v_old_year,
    p_previous_values =>
    xmltype('<RowSet>
    <Row>
    <Col ColName="Offered">'||v_old_offered||'</Col>
    </Row>
    </RowSet>'));
    END IF;
    IF (updating AND v_old_inweb != v_new_inweb) THEN
    cu_events_pkg.log_event(p_event_type => 'USINWEB',
    p_enacted_by => v_user,
    p_subject_type => 'UNITSETX',
    p_subject_id => to_char(v_old_unitset_id),
    p_subject_year => v_old_year,
    p_previous_values =>
    xmltype('<RowSet>
    <Row>
    <Col ColName="Publish on Web">'||v_old_inweb||'</Col>
    </Row>
    </RowSet>'));
    END IF;
    IF (updating AND v_old_title != v_new_title) THEN
    cu_events_pkg.log_event(p_event_type => 'USTIT',
    p_enacted_by => v_user,
    p_subject_type => 'UNITSETX',
    p_subject_id => to_char(v_old_unitset_id),
    p_subject_year => v_old_year,
    p_previous_values =>
    xmltype('<RowSet>
    <Row>
    <Col ColName="UnitSet Title">'||v_old_title||'</Col>
    </Row>
    </RowSet>'));
    END IF;
    IF (updating AND v_old_special_note.getClobVal() != v_new_special_note.getClobVal()) THEN
    cu_events_pkg.log_event(p_event_type => 'USSPECN',
    p_enacted_by => v_user,
    p_subject_type => 'UNITSETX',
    p_subject_id => to_char(v_old_unitset_id),
    p_subject_year => v_old_year,
    p_previous_values =>
    xmltype('<RowSet>
    <Row>
    <Col ColName="Special Note">'||NVL(v_old_special_note.getStringVal(),'NULL')||'</Col>
    </Row>
    </RowSet>'));
    END IF;
    IF (updating AND v_old_unit_desc.getClobVal() != v_new_unit_desc.getClobVal()) THEN
    cu_events_pkg.log_event(p_event_type => 'USDESC',
    p_enacted_by => v_user,
    p_subject_type => 'UNITSETX',
    p_subject_id => to_char(v_old_unitset_id),
    p_subject_year => v_old_year,
    p_previous_values =>
    xmltype('<RowSet>
    <Row>
    <Col ColName="Description">'||NVL(v_old_unit_desc.getClobVal(),'NULL')||'</Col>
    </Row>
    </RowSet>'));
    END IF;
    IF (updating AND v_old_staff != v_new_staff) THEN
    cu_events_pkg.log_event(p_event_type => 'USSTAFF',
    p_enacted_by => v_user,
    p_subject_type => 'UNITSETX',
    p_subject_id => to_char(v_old_unitset_id),
    p_subject_year => v_old_year,
    p_previous_values =>
    xmltype('<RowSet>
    <Row>
    <Col ColName="Staff">'||NVL(v_old_staff,'NULL')||'</Col>
    </Row>
    </RowSet>'));
    END IF;
    IF (updating AND v_old_teach_pattern.getClobVal() != v_new_teach_pattern.getClobVal()) THEN
    cu_events_pkg.log_event(p_event_type => 'USTEACHP',
    p_enacted_by => v_user,
    p_subject_type => 'UNITSETX',
    p_subject_id => to_char(v_old_unitset_id),
    p_subject_year => v_old_year,
    p_previous_values =>
    xmltype('<RowSet>
    <Row>
    <Col ColName="Teaching Pattern">'||NVL(v_old_teach_pattern.getClobVal(),'NULL')||'</Col>
    </Row>
    </RowSet>'));
    END IF;
    IF (updating AND v_old_assess.getClobVal() != v_new_assess.getClobVal()) THEN
    cu_events_pkg.log_event(p_event_type => 'USASSESS',
    p_enacted_by => v_user,
    p_subject_type => 'UNITSETX',
    p_subject_id => to_char(v_old_unitset_id),
    p_subject_year => v_old_year,
    p_previous_values =>
    xmltype('<RowSet>
    <Row>
    <Col ColName="Asessment">'||NVL(v_old_assess.getClobVal(),'NULL')||'</Col>
    </Row>
    </RowSet>'));
    END IF;
    IF (updating AND v_old_offered_in_courses.getStringVal() != v_new_offered_in_courses.getStringVal()) THEN
    cu_events_pkg.log_event(p_event_type => 'USOFFCRS',
    p_enacted_by => v_user,
    p_subject_type => 'UNITSETX',
    p_subject_id => to_char(v_old_unitset_id),
    p_subject_year => v_old_year,
    p_previous_values =>
    xmltype('<RowSet>
    <Row>
    <Col ColName="Offered in Courses">'||NVL(v_old_offered_in_courses.getClobVal(),'NULL')||'</Col>
    </Row>
    </RowSet>'));
    END IF;
    IF (updating AND ((v_old_BA_Majors IS NULL) OR (v_old_BA_Majors.getStringVal() != v_new_BA_Majors.getStringVal()))) THEN
    -- Special Treatment here because the BAMajors tag is optional.
    -- If missing this causes an error with the getClobVal() method.
    IF (v_old_BA_Majors IS NULL) THEN
    cu_events_pkg.log_event(p_event_type => 'USBAMAJ',
    p_enacted_by => v_user,
    p_subject_type => 'UNITSETX',
    p_subject_id => to_char(v_old_unitset_id),
    p_subject_year => v_old_year,
    p_previous_values =>
    xmltype('<RowSet>
    <Row>
    <Col ColName="BAMajors">NULL</Col>
    </Row>
    </RowSet>'));
    ELSE
    cu_events_pkg.log_event(p_event_type => 'USBAMAJ',
    p_enacted_by => v_user,
    p_subject_type => 'UNITSETX',
    p_subject_id => to_char(v_old_unitset_id),
    p_subject_year => v_old_year,
    p_previous_values =>
    xmltype('<RowSet>
    <Row>
    <Col ColName="BAMajors">' || v_old_BA_Majors.getStringVal() ||'</Col>
    </Row>
    </RowSet>'));
    END IF;
    END IF;
    IF (updating AND v_old_req_texts.getClobVal() != v_new_req_texts.getClobVal()) THEN
    cu_events_pkg.log_event(p_event_type => 'USREQTXT',
    p_enacted_by => v_user,
    p_subject_type => 'UNITSETX',
    p_subject_id => to_char(v_old_unitset_id),
    p_subject_year => v_old_year,
    p_previous_values =>
    xmltype('<RowSet>
    <Row>
    <Col ColName="Required Texts">'||NVL(v_old_req_texts.getClobVal(),'NULL')||'</Col>
    </Row>
    </RowSet>'));
    END IF;
    IF (updating AND v_old_reco_texts.getClobVal() != v_new_reco_texts.getClobVal()) THEN
    cu_events_pkg.log_event(p_event_type => 'USRECOTXT',
    p_enacted_by => v_user,
    p_subject_type => 'UNITSETX',
    p_subject_id => to_char(v_old_unitset_id),
    p_subject_year => v_old_year,
    p_previous_values =>
    xmltype('<RowSet>
    <Row>
    <Col ColName="Recommended Texts">'||NVL(v_old_reco_texts.getClobVal(),'NULL')||'</Col>
    </Row>
    </RowSet>'));
    END IF;
    END IF;
    END;

    Be aware that you could also do an ALTER SESSION instead of a ALTER SYSTEM. This would prevent to shutdown the database to make the change, within the session, active.
    M

  • AJAX region pull

    I am using ajax to display a region from another page. This region has 2 text fields and a button that when pressed branches to another page. When I input the data and click the button I get an error:
    Error Item ID (10060522396890067) is not an item defined on the current page.
    Any suggestions?

    Hello Stew,
    As I suspected, your problem (and the others who started this thread) has nothing to do with the browser you are using, but in the way you are using the technique described by Carl, and was (of course) spotted correctly by Scott.
    In my answer, I’m also referencing your post in here - Re: Partial refreshing of pages in 2.0 ?
    >> I've looked at the source that's generated by my page and don't find an extraneous <form> tag
    Carl didn’t mean the <form> tag itself but to form input components in general, like items. In your case, we are talking about ‘P20_CUST_ID’, which you defined as a hidden item on page 20. Although hidden, this item is being rendered on page 20, and is included in the ‘box’ you are clipping from this page. While submitting page 2 (apply changes) the APEX engine finds on page 2 and item which not belong to this page, so it issue an error message.
    In your specific case, where the item – P20_CUST_ID – is a hidden one, the solution is very simple. Just set the condition of the item to ‘never’. That will prevent it from being rendered on page 20, so it will not be copied to page 2. I did that on your demo application, and now it seems to work just fine.
    In general, if the item you are using in the remote page must be a regular item (and not a hidden one) you need to use Scott suggestion, and put it in a region that you don’t clip as part of your AJAX process.
    Regards,
    Arie.

  • Why does Contribute generate extraneous HTML code?

    Why does Contribute CS4 generate so much extraneous HTML code that is either redundant or conflicts with styles specified in our style sheet?  Below are examples of what we've encountered in the first two weeks of using the product.  It seems that, if we keep using Contribute, our website will soon be cluttered with junk code.  (Some of the special characters listed below and generated by Contribute do not display correctly in this forum.)
    1.       This simple Heading 1 tag: <h1>Heading 1</h1>
    gets replaced with this code:
    <p style="margin-top:0;"><span style="font-family:times new roman;font-size:16px;"><strong><span style="font-family:verdana; font-size:15px;">Heading 1 </span></strong></span></p>
    2.       This simple Heading 2 tag: <h2>Heading 2</h2>
    gets replaced with this code:
    <p><span style="font-family:times new roman;font-size:16px;"><strong><span style="font-family:verdana; font-size:13px;">Heading 2</span></strong></span></p>
    3.       This simple Paragraph tag: <p>Text</p>
    gets replaced with this code:
    <span style="font-family:verdana;"> </span><p style="margin-top:0;margin-bottom:0;"><span style="font-family:times new roman;font-size:16px;">Text<span style="font-family:verdana;font-size:13px;">Text</span></span></p>
    4.       The standard straight quote symbol (&quot;) gets replaced with left and right quotes (&ldquo;) (&rdquo;)
    5.       Apostrophe’s get replaced with “&rsquo;”.
    6.       Odd, non-visible (in some browsers) characters are inserted, like: “”.
    7.       Dashes get replaced with these special characters, which may not display in all browsers: “—”.
    8.       This non-standard style tag gets inserted at the top of some pages:
    <!--
    .style1 {font-size: 15px}
    -->
    </style>
    9.       Trademarks, which are reliably denoted with just ”&trade;”, get replaced with this code and these special characters, which may not display in all browsers: “<span style="font-size:12px;">â„¢</span>”.
    10.   The simple Heading 1 tag: : <h1>Heading 1</h1>
    gets overridden with this code:
    <h1><span style="font-family:times;font-size:16px;"><span style="font-family:arial;font-size:15px;color:black;">Heading 1</span></span></h1>
    11.   This simple Paragraph tag: <p>Text</p>
    has the inappropriate “ServNAV” navigation style applied to it:
    <p class=”ServNAV”>Text</p>
    12.   This simple Paragraph tag: <p>Text</p>
    gets replaced with this code:
    <p style="margin-top:0;"><span style="font-family:Times New Roman;font-size:15px;"><span style="font-family:verdana;font-size:12px;color:#333333;">Text</span></span></p>
    13.   Extra filler space gets inserted at the bottom of a page with this code:
    <p style="margin-bottom: 0;"> </p>
    14.   Internal links are created as absolute (<a href="http://www.company.com/subfolder/Client-One.html">) rather than relative links ()<a href="../subfolder/Client-One.html">.
    15.   Links to other sites are coded incorrectly,
    as in “<a href="www.company.com">www.company.com</a>”
    instead of: “<a href="http://www.company.com">www.company.com</a>”.
    16.   This simple bold Paragraph tag: <p><strong>About Company</strong></p>
    gets replaced with this
    <p style="margin-bottom: 0;"><strong>About Company</strong></p>
    17.   This simple Paragraph tag: <p>Text</p>
    gets replaced with this code:
    <p style="margin-top:0;"><span style="font-family:times new roman;font-size:16px;"><span style="font-family:verdana;font-size:13px;">Text</span></span></p>
    Message was edited by: JerryWeb

    I've just written a detailed list of editing tips for our internal use that, in addtion to using "Paste Text Only", describe how to avoid or re-key Microsoft Office curly quotes and apostrophes, use only Contribute's Insert | Special Characters, etc.
    In addition, I created a new role in which I made the following changes:
    Under Editing, under“General editing restrictions”, checked the “Prevent users from inserting images (except shared assets); under “Paragraph spacing, changed so “Enter key moves insertion point down:” “Two lines, as in web page editors (uses standard <p> tags”; under “Other editing options”, unchecked “Allow multiple consecutive spaces”
    Under Styles and Fonts, under “Styles and Fonts”, unchecked “Include CSS styles in the Style menu; unchecked “Allow users to apply fonts and sizes”; and unchecked “Allow users to apply font color and background color”.
    Under New Pages, unchecked “Create a blank page”
    Our initial experimentation indicates this eliminates most of the extraneous and junk HTML code that Contribute otherwise introduces. Time will tell. However, it requires contributors to be pretty rigorous.

  • Text or GREP find/change method to assign tags

    Hi all
    I could use a text or GREP find/change method to  assign tags to paragraph styles (for use in FindChangeByList), would anyone be able to help please?
    Steve

    Hi Peter
    I produce a quarterly magazine for which text is supplied in Word format.
    I currently run the 'FindChangeByList' script to format body text, headings, bulleted and numbered lists, web and email address text styling and to remove/correct all extraneous characters etc.
    Once the job is printed I need to produce a tagged 'accessible' readable (eg: read out loud function in Acrobat) pdf from the file, for text to speech readers.
    I am currently using the map tags to styles function, which allows me to assign tags which in turn gives me control of the 'text reading' order.
    What I'd like to be able to do is automatically apply the Tags to syles while processing the 'FindChangeByList' script.
    Steve

  • Div tag placement error

    Hi-
    I have placed text within a div tag that is wrapped within another div (Figure 1) but I can't seem to identify the proper placement.  I tried to solve the problem by assuming that the placement of the div was incorrect.  However, I cannot place a div within the area that I want (red arrow indicates correct placement), therefore, the text is appearing at the bottom of where it should, under what seems to another extraneous div.  Any help in solving this is greatly appreciated. Thanks!
    Two images: website in browser (left) and in design view from Dreamweaver (right).

    You need a wider page to hold the floated links and iframe.  Also your iframe is too short for the amount of content it needs to display.
    I took the liberty of re-coding your page layout and in so doing removed a lot of the images and replaced them with CSS.   Copy & Paste this code into a NEW, blank document and see if it makes sense.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Steve Baisden | Home</title>
    <link rel="shortcut icon" href="favicon.ico" />
    <style type="text/css">
    body {
    background-color:#e4e4e4;
    width: 1100px;
    margin: 0 auto;
    .container {overflow: hidden; /*float containment*/}
    .header {
    background:#000;
    border-radius:20px;
    border: 4px solid silver;
    min-height:83px;
    width:1000px;
    .header img.logo {
    float:left;
    margin:25px 0px 25px 25px;
    .navMain {
    margin:30px 28px 30px 0px;
    float:right;
    .navMain ul {
    margin:0px;
    padding:0px;
    .navMain ul li{
    margin:0px;
    padding:0px 20px;
    list-style:none;
    display:inline;
    .navMain ul li a{
    margin:0px;
    padding:0px;
    color:#FFF;
    text-decoration:none;
    font-size:18px;
    font-family: "Arial Unicode MS";
    text-transform:uppercase
    .navMain ul li a:hover{
    text-decoration:underline;
    /**persistent page indicator**/
    body.home .navMain li a.home,
    body.about .navMain li a.about,
    body.portfolio .navMain li a.portfolio,
    body.resume .navMain li a.resume,
    body.contact .navMain li a.contact{
    color:rgb(143,203,3)
    .content {
    border-radius:20px;
    border:4px solid silver;
    background-color:#428301;
    width:1000px;
    margin:10px 0;
    padding:0;
    overflow:hidden; /*for float containment*/
    position:relative;
    box-shadow:7px 7px 5px #999
    #leftCol {
    float:left;
    width:249px;
    min-height: 370px;
    background:#FFF;
    border-radius:16px 0 25px 25px;
    .wrapLinks {
    margin:10px 0px 0px 0px;
    padding:3px 0px 0px 0px;
    font-family:"Arial Unicode MS";
    .wrapLinks li{
    margin:0px;
    padding:9px 0px 0px 30px;
    list-style:none;
    .wrapLinks li a {
    font-size:13px;
    color:#428301;
    text-decoration:none;
    /**arrow after links**/
    .wrapLinks li a:after {
    content:' \2799';
    .wrapLinks li a:hover{
    text-decoration:underline;   
    h2.title {
    margin:0px;
    padding:0px;
    font-size:24px;
    font-weight:normal;
    font-family:"Arial Unicode MS";
    /**carousel**/
    iframe{
    position:relative;
    float:right;
    width: 751px;
    height:375px;
    border:none;
    margin-top:0;
    border-radius: 0 16px 0 0;
    #LearnMore{
    margin:0px;
    padding:0px;
    background: url(http://www.sbaisden.com/images/button_content.png) no-repeat;
    height:75px;
    width: 145px;
    position:absolute;
    right:25px;
    top:275px;   
    opacity: 0.8;
    cursor:pointer;
    #LearnMore p { /**move text off screen**/
    text-indent:-9999em}
    #LearnMore:hover{
    opacity: 1.0;
    .greeting {
    clear:both;
    font-family: "Arial Unicode MS";
    font-size: 20px;
    font-style: normal;
    color: #FFF;
    padding:20px;
    .bottom {
    text-align:center;
    margin:0px auto;
    padding:0;
    font-family:"Arial Unicode MS";
    font-size:16px;
    font-weight:bold;
    .footer {
    font-family:"Arial Unicode MS";
    font-size:10px;
    color:#666;
    padding:0 20px;
    margin:0;
    clear: both;
    </style>
    </head>
    <body class="home">
    <div class="container">
    <div class="header">
    <a href="index.html"><img class="logo" src="http://www.sbaisden.com/images/header_logo.png" width="241" height="27" border="0" alt="Steve Baisden" /></a>
    <div class="navMain">
    <ul>
    <li><a class="home" href="index.html">Home</a></li>
    <li><a class="about" href="about.html">About</a></li>
    <li><a class="portfolio" href="portfolio.html">Portfolio</a></li>
    <li><a class="resume" href="resume.html">Résumé</a></li>
    <li><a class="contact" href="Contact.php">Contact</a></li>
    </ul>
    <!-- end .navMain --></div>
    <!-- end .header --></div>
    <div class="content">
    <!--carousel-->
    <iframe src="http://www.sbaisden.com/carousel.html" scrolling="auto"></iframe>
    <!--end carousel-->
    <div id="LearnMore">
    <p><a href="#">LEARN MORE</a></p>
    <!--end LearnMore-->
    </div>
    <div id="leftCol">
    <ul class="wrapLinks">
    <li><h2 class="title">Transportation</h2><a href="portfolio.html">Get more information</a></li>
    <li><h2 class="title">GIS/Data Analysis</h2><a href="portfolio.html">Get more information</a></li>
    <li><h2 class="title">Map Design</h2><a href="portfolio.html">Get more information</a></li>
    <li><h2 class="title">(Re)Development</h2><a href="portfolio.html">Get more information</a></li>  
    </ul>
    <!--end leftCol--></div> 
    <div class="greeting">
    <h4>Greetings! Welcome to my online portfolio.</h4>
    <p>This website contains a collection of my academic papers, projects and maps that I have compiled into one
    <br />source, displaying my abilities and skills within the realm of Urban Planning.</p>
    <p>Please explore this site and feel free to leave a comment.</p>
    <!-- end .greeting --></div>
    <div class="bottom">
    <p>***Certain pages of this site are still "under construction". Please check back for future developments.***</p>
    <!--end bottom--></div>
    <!--end .content--></div>
    <div class="footer">
    <p>Copyright © 2012 Steve Baisden</p>
    <!--end .footer--></div>
    <!--end container--></div>
    </body>
    </html>
    Nancy O.

  • Invalid Mark-up Warning - Overlapping or Unclosed Tag

    QUESTION:  When the following code is placed into a PHP document created by Dreamweaver an invalid mark-up warning is received and several of the HTML tags are highlighted with yellow.  According to the warning an overlapping or unclosed tag is present.  Unfortunately, I cannot find an overlapping or unclosed tag. 
    In an effort to determine the presence or absence of extraneous characters, I cut the code, placed it into a text file, and removed all formatting.  I then pasted it back into the document, saved the document, and still the invalid mark-up warning occurred.
    1) What is going on?
    2) Should I just ignore it?
    With the exception of an alignment problem of the headerInclude and Mainpage divisions everything appears fine.
    CODE:
    <body class="oneColElsCtr">
         <div id="container">
              <div id="headerInclude">
                   <?php include("header.php"); ?>   
              <!-- end #headerInclude --></div>
              <div id="mainContent">
                   <h1>The Include( ) Function</h1>   
                   <p>This is the content of my Mainpage.  The header to my Mainpage is created with a server-side include using the PHP include( ) function.</p>
               <!-- end #mainContent --></div>
           <!-- end #container --></div>
    </body>
    Roddy

    kiusau wrote:
    Yes, that appears to have fixed the problem.
    I am sorry to be so persistent, but the problem has returned.
    This time, however, with new insight:
    Though the mark-up error does not appear when the file is reopened after rebooting Dreamweaver, it does reappear when I open the file to be included.  In short, whatever is causing the mark-up error appears to require two files:  the one that contains the include( ) function, and the one that is included. 
    What I eventually thought to be a fluke appears to be a reoccurring phenomenon.  Alas!
    Any other suggestions?
    Roddy

  • Custom command to strip all except specified tags / parameters using javascript or regex?

    Hi all
    I'm trying to figure out how to create a custom command that will allow me to strip all tags from a page except for those I specify, and will only allow the parameters that I specify for the remaining tags. It seems to me that it should be achievable either with a custom command using javascript, or by simply recording a command and doing a search and replace with regex.
    I'm not familiar with javascript, so I've been trying the latter route, but I'm open to help with either method (or for that matter, any other method that will allow me to perform this with just a couple of mouse clicks, and no need to initiate a long sequence of commands manually every time).
    The tags I'd like to retain are:
    p
    br
    ul
    ol
    li
    a
    table
    tr
    td
    Any tags other than the above would need to be stripped. For the tags above, I'd obviously want to retain opening and closing tags, and I'd also want to allow href and target parameters for the a tag. I would want to strip all other parameters from these tags, though.
    I got partway into this, in that I managed to make regex that finds all the tags apart from the above, but hadn't yet gotten to trying to strip the unwanted parameters:
    </?\w+(?<!p|br|ul|ol|li|a|table|tr|td)((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s* )/?>
    This validates on the online version of RegExr (http://gskinner.com/RegExr/), and finds all tags apart from the above correctly as far as I can see. However, it doesn't work in Dreamweaver's Find box with Use Regular Expression checked, reporting "Invalid Quantifier".
    ...and this is as far as I've gotten. If anybody can offer help, it'd be much appreciated!
    Thanks in advance to you all...
    Mike

    Thanks, Barry. Paste Special is what I'm currently doing, but as you can imagine, it's mighty tedious cleaning up the formatting by hand on every single document, when the formatting I need is all there to start with in a regular paste -- just along with a bunch of extraneous formatting. With as many as a dozen or more documents to do each day, some with lengthy, nested lists and many bits of formatting that I need to keep, it's a bit soul destroying to have to do it manually.
    It must be possible with Javascript, but my problem is I'm not a Javascript coder and would need to learn from scratch. It's likely possible with regex too, but my issue there is that Dreamweaver's version of Regex seems to be cut down from the version all of the regex validators I could find online use. I came fairly close to having something workable done entirely with regex when I last looked at this a couple of months back, and it validated just fine (only remaining quirk was to do with some attributes I didn't need, but that was probably solvable.) Unfortunately, although it validated in multiple online tools, Dreamweaver refused to accept it as valid.
    I've since found a (very old) Dreamweaver Command extension that partially works, incidentally, and could perhaps be extended to do what I need -- but again, it would require me to understand code I simply don't, as yet.
    http://www.andrewwooldridge.com/dreamweaver/commands.html
    The Remove Tags Except command there mostly works, but it seems to have an issue with nested tags that throws up an error message, and it also doesn't have a way for me to specify which attributes to keep, just which tags. Other than that it's close to ideal though -- the only other way it could be improved would be if I could kludge it to simply run straight away with a predetermined exclusions file, rather than making me manually select and load the exclusions every time.

  • HTML tag conversion/correction

    Using RoboHelp 7 (which I just purchased), I went through a
    semi-tutorial by Jen deHaan, titled Creating and Customizing Online
    Documentation with RoboHelp. The product has changed significantly
    since the last time I used it so I wanted to refresh my memory on
    how to use RoboHelp. Grey matter combined with grey hairs and all
    that other mystical stuff.
    In doing so, I came upon some peculiarities—it could be
    I simply do not quite understand.
    I was trying to create a footer using the procedures
    described in the tutorial, which involves putting a copyright
    statement in the footer. Stepping outside the box, I added an em
    dash to the copyright line instead of the copyright symbol.
    Everything looked good until I went to view the pages using the
    system browser (Firefox). Low and behold, the em dash appears as
    “&emdash;”. I looked in the source, and sure
    enough, between the word copyright and 2007 stood the phrase
    “&emdash;”. So I changed the tag back to
    “&mdash;” in the HTML output, thinking all would be
    well.
    I went back to RoboHelp to change the source documents and
    the template to which the footer had been added in the first place.
    I had to change the text in the template using HTML view, and every
    time I switched back to Design view, RoboHelp would change it back
    to the incorrect tag (it does the same with the en dash tag).
    Why’d it do dat? How can I stop it?
    I even tried coding &#8212 for the em dash, but RoboHelp
    changed that back also.
    Finally, I modify the file outside of RoboHelp using Wordpad.
    When I looked at the topic page in HTML view, I noticed that
    RoboHelp changed the “&mdash;” to
    “&amp;mdash;”. Now you really have to explain that
    one to me???
    Another situation that occurred while trying to correct the
    problem. I decide to make the change in the template and reapply
    the footer to the topic pages. However, when I applied the
    template, the topic file changed the template, instead of the
    template file changing the topic file. “I don’t know
    what kind of ship you’re running here…” (Col.
    Jessup from A Few Good Men)???
    I do not have a clue as to what I am doing incorrectly. Can
    anyone provide some sort of clue?
    Nick Crenshaw

    No, I had not used the Insert.HTML.symbol function. I was
    hard-coding it using the HTML view.
    I tried the method you recommended and it seems to work. And,
    as you noted, Robohelp does frame the HTML coding with its own
    marker tag (<robohelp>), which I assume tells RoboHelp not to
    change it. However, it also puts in another tag (<symbol>),
    which is not a self-terminating tag. I was trying to avoid
    extraneous tagging, especially if it was not XML compliant. But, I
    guess I can work within the constraints of the tool because of the
    other features.

  • Can't change ID3 tags in iTunes 10?

    Ever since the update to 9.2, iTunes seems to have lost the ability to convert ID3 tags.
    Prior to 9.2 (and obviously, 10.x) I would be able to add mp3s to my library, select all of the newly added tracks, then Control click and change all of my ID3 tags to NONE to strip it of any extraneous info, wait for iTunes to rescan everything, and then I'd re-convert my ID3 tags to 2.3.
    Since the update(s), it'll allow you to go through the motions, but the tracks don't actually rescan. I'll try to convert to NONE and nothing happens.
    This is an important function for me because I use iTunes in conjunction with Serato for DJing and sometimes Serato has trouble reading a track if the ID3 tag is an older version.
    Does anyone have any suggestions? Is this merely an oversight by Apple's iTunes team or is there a known reason why this function was removed?
    p.s. -- I have always been under the impression that you cannot change an ID3 tag from say, 2.1 to 2.3, without first converting the ID3 tag to NONE first. If this is no longer the case, can someone please enlighten me?

    A rare but maddening problem, probably limited to older MP3 files,
    Mac/Windows MP3 files that do not play in iTunes but play in QuickTime
    There is a problem with some mp3 files not playing in iTunes
    because of the ID3 tag headers in the files. For Mac OS you
    can fix these files by processing them with XLD (X Lossless Decoder),
    a free download.
    1. Select the Input MP3 files
    2. Set the output format to MP3 Lame in the XLD preferences.
    3. Unless you select a directory for output different from input,
    the output file names will have a number added to the name.
    The selected files are processed on my machine at about 30x or
    about 2 minutes per hour of play time. I was unable to fix these
    files using right click->Get Info in iTunes.
    On my MacBook Pro , trying to run on of these problem MP3
    files, locked up iTunes. Force Quit on iTunes was not enough
    to get iTunes 10.1 to run again. I had to restart the machine.
    I think this is the first time I have ever had to restart my
    machine for a problem with an App. From my reading on the web,
    I can see this problem has existed at least since iTunes 7.x
    On Windows, you may be able to fix this problem using
    MP3TagValidator.
    No need to throw away those bad MP3 files!

  • Why do I get html tags with my Flash forms CGI-mailed input text?

    I'm using a Flash form to send input text to a cgi page
    (using load variable). The following text is on the CGI page.
    To: [email protected]
    From: [email]
    Errors-To: [email protected]
    Subject: [subject]
    Type of Project: [subject]
    Deadline: [details]
    Name: [realname]
    e-mail: [email]
    Phone: [phone]
    e-mails me results like this...
    Type of Project: <TEXTFORMAT LEADING="2"><P
    ALIGN="LEFT"><FONT
    FACE="_sans" SIZE="12" COLOR="#000000"
    LETTERSPACING="0" KERNING="0">by
    george</FONT></P></TEXTFORMAT>
    Deadline: <TEXTFORMAT LEADING="2"><P
    ALIGN="LEFT"><FONT
    FACE="_sans" SIZE="12" COLOR="#000000"
    LETTERSPACING="0"
    KERNING="0"></FONT></P></TEXTFORMAT><TEXTFORMAT
    LEADING="2"><P ALIGN="LEFT"><FONT FACE="_sans"
    SIZE="12" COLOR="#000000" LETTERSPACING="0"
    KERNING="0">it!!!</FONT></P></TEXTFORMAT>
    Name:
    e-mail: <TEXTFORMAT LEADING="2"><P
    ALIGN="LEFT"><FONT
    FACE="_sans" SIZE="12" COLOR="#000000"
    LETTERSPACING="0"
    KERNING="0">[email protected]</FONT></P></TEXTFORMAT>
    Phone: <TEXTFORMAT LEADING="2"><P
    ALIGN="LEFT"><FONT
    FACE="_sans" SIZE="12" COLOR="#000000"
    LETTERSPACING="0" KERNING="0">I&apos;ve
    got</FONT></P></TEXTFORMAT>
    anyone know how I can get it to drop all the extraneous html
    crap? - I just want the input text items.
    Also I can't figure out how to do a flash pulldown list as a
    form element... all tutorials I find on the sbject are for Flash 5
    and say to use Smartclips from the common librarirs tab - but there
    are no "smartclips" in my Flash CS3. I see other things in
    components (menu, list) - but cannot figure out how to add my items
    to the list.

    is there some way I could use an "expression" to subtract the
    unwanted text strings from the info being passed by the variables?
    If so, does anyone have an example of the context I would used to
    subtract 2 strings from that info...
    this string of html tags appears before the passed input text
    TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT
    FACE="_sans" SIZE="12" COLOR="#000000"
    LETTERSPACING="0" KERNING="0">
    and this appears affter it...
    </FONT></P></TEXTFORMAT>
    it's always the same.

  • Please Use Code Tags

    There was a time in these forums where posters were flamed mercilessly for not using code tags. Now it seems that OP's almost NEVER use them. It makes me nuts. I wonder though why the flaming has stopped.
    1) Is everyone too flamed out thanks to AU_UK?
    2) Have the new posters beaten down the standards?
    Just ranting, sorry. Please please please use code tags.
    please?

    For those who miss the URL tag, try the following. It works in IE, but I don't know about any other browsers. I found this on the internet a while back.
    Make a favorite (on your Links bar is a good place), with the following as the URL (all in one string, of course--get rid of any spaces that the forum might insert):
    javascript:if(frames.length>0){alert('Frames!')}else{ulBV3pQy=document.selection.createRange().text;if(ulBV3pQy!=''){location.href=ulBV3pQy.replace(/\042/g,'').replace(/\047/g,'')}else{alert('Select%20text%20on%20page%20like:\n%20%20%20http://www.domain.com...')}}(Sorry for the long line--code tags should eliminate the extraneous spaces, right?)
    Then, if you see a link in a page, such as any of the following links that OPs need to remember:
    http://www.google.com
    http://java.sun.com/j2se/1.4.2/docs/api/
    http://java.sun.com/j2se/1.5.0/docs/api/
    Select (highlight) the link, click the "Favorite" that you made, and the link will be opened in the current window. No need to copy and paste--just highlight and click the favorite.
    I have found this shortcut to be quite useful.

  • Canon XML tags lost or just hidden?

    I'm using Aperture to catalog JPEGs taken with a Canon 2S IS. It seems not all of Canon's XML tags are imported. I can see all the info in Canon's own Image Browser software, but not in Aperture. Color balance, ASA and things like that seem to get lost in the translation.
    I remember reading somewhere awhile ago that Canon doesn't use standard XML fields. Is that true? And if so, can't Apple just import all extraneous XML data into random unnamed fields that the user can then tag?
    Is this data really in Aperture and I just can't find it, or is it not imported because it doesn't match what Apple expects to find?
    Thanks for any tips.
    1.25 gHz G4 Powerbook w/ 1 gig RAM   Mac OS X (10.4.6)  

    Is that camera officially supported?

  • Creative Mediasource ID3 Tags - Edit more than one year at a ti

    I use a 60gb Zen Xtra with Mediasource. I take pride in the ID3 tags of all my files especially those of my Jazz collection and my player is well organised. The only thing I have to ask is - is there any way of editing the year of, say, an entire album that was recorded in 959 for example all at the same time. It lets me do this for Artist, Album and Genre but not year. Is there any upgrade in software I can get or am I just missing something here?
    Thanks in advance for your input,Matt

    Shucks, I tried and you can't seem to do it. A curious oversight.
    You can either use another copying program like which will let you do it, or simply get a mass tagger (but you will need to edit the tracks on the PC first, then copy). For some mass tagger recommendations look here in the Zen FAQ at Nomadness.net.

Maybe you are looking for