[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [dita] Purpose of files in the scott-example-sandbox directory
How would you see them being used? The code samples for the specification are maintained within <codeblock> elements inside the specification source. I don't think we can or should change this.
From a practical perspective, Kris and I found several instances while updating the spec where descriptive text about a code sample no longer matched the sample itself. I think this is because over each release, samples had been fixed, expanded, or improved without looking at the surrounding text. That problem would increase significantly if the code samples were moved out and no longer tied to the context.
From a technical perspective, there is no standard way to pull markup from a valid DITA file and present only the relevant portion as a code sample. There are DITA-OT extensions to <coderef> that allow you to pull specific lines from a sample file, such as lines 5 to 10 -- but those extensions are non-standard. Using that method would likely break the specification as soon as somebody edited the sample file with a new editor, causing the text to flow differently.
Robert D Anderson
IBM Authoring Tools Development
Chief Architect, DITA Open Toolkit (http://www.dita-ot.org/)
"Hudson, Scott" ---03/31/2015 11:32:54---I still think these could be useful for validation and testing for 1.3, though they may need to be u
From: "Hudson, Scott" <scott.hudson@comtech-serv.com>
To: Robert D Anderson/Rochester/IBM@IBMUS
Cc: Kristen James Eberlein <kris@eberleinconsulting.com>, "dita@lists.oasis-open.org" <dita@lists.oasis-open.org>
Date: 03/31/2015 11:32
Subject: Re: [dita] Purpose of files in the scott-example-sandbox directory
Hi Scott,
I'm still not sure what these files are for now? They are not part of the DITA 1.3 creation, review, or delivery, so I think SVN is probably not the right place for them. I'm nervous about them causing confusion when others start looking for official material, as we had with some of the extra files in the doctypes\ directory a few weeks back.
Also, as a related note, I think the bad examples from 1.2 have been corrected. They were never tested for XML (or DITA) validity during the 1.2 process, which is something we corrected for 1.3, resulting in tweaks to quite a few of the code examples.
Robert D Anderson
IBM Authoring Tools Development
Chief Architect, DITA Open Toolkit (http://www.dita-ot.org/)
"Hudson, Scott" ---03/31/2015 10:44:17---Kris, et al, These files take all of the examples from the DITA 1.2 Specification (http://docs.oasis
From: "Hudson, Scott" <scott.hudson@comtech-serv.com>
To: Kristen James Eberlein <kris@eberleinconsulting.com>, "dita@lists.oasis-open.org" <dita@lists.oasis-open.org>
Date: 03/31/2015 10:44
Subject: Re: [dita] Purpose of files in the scott-example-sandbox directory
Sent by: <dita@lists.oasis-open.org>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]