Martin Bryan wrote:
> We are on the final stretch as far as DSRL is concerned. The attached FDIS
> contains working examples of the extended new syntax and first drafts of the
> XSLT needed to transform it. There are three outstanding technical issues,
> and an editorial point, that need review:
Hi,
I will not be able to attend meeting, so I'm sending my comments this way.
* XPath locations in dsrl:within
Section 6.1 mentions that within element can contain XPath *location* to
identify parent of element to be renamed. Shouldn't it be XPath
*pattern* (as defined in http://www.w3.org/TR/xslt.html#patterns) only?
XPath locations can contain any axis (including preceding, ancestor,
...) and such axes are not very useful in selecting nodes when context
node is document root.
* Entities
If section 7 should provide future replacement for entities, it should
provide two more features:
1. Ability to reference other entities from replacement text. In DTD you
can have:
<!ENTITY foo "FOO">
<!ENTITY bar "XXX &foo; YYY">
This is impossible to model using current DSRL spec. I think that we
should add new element dsrl:entity-refernce, or simply dsrl:ref to allow
such references:
<dsrl:define-entities>
<dsrl:from>foo</dsrl:from>
<dsrl:replacement-text>FOO</dsrl:replacement>
<dsrl:from>bar</dsrl:from>
<dsrl:replacement-text>XXX <dsrl:ref name="foo"/> YYY</dsrl:replacement>
</dsrl:define-entities>
2. You need access to entity definitions even if you are not using DSRL
preprocessor. Especially if you want to completely bypass internal and
external subsets. For this purpose we can propose new PI:
<?entities href="URI of DSRL map"?>
Parser could load DSRL map at the start of processing (in such case only
dsrl:define-entites will be recognized) and load definition of entites
prior further parsing.
This way we would have something what can really replace current entity
definition mechanism based on <!ENTITY ...>.
* Typo
The last paragraph on the page 3:
There is space before comma in sentence ending "....as the content of
the dsrtl:from element ."
HTH,
Jirka
-- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz ------------------------------------------------------------------ Profesionální školení a poradenství v oblasti technologií XML. Podívejte se na náš nově spuštěný web http://DocBook.cz Podrobný přehled školení http://xmlguru.cz/skoleni/ ------------------------------------------------------------------ Nejbližší termíny školení: ** XSLT 23.-26.10.2006 ** XML schémata 13.-15.11.2006 ** ** DocBook 11.-13.12.2006 ** XSL-FO 11.-12.12.2006 ** ------------------------------------------------------------------ http://xmlguru.cz Blog mostly about XML for English readers ------------------------------------------------------------------
-- DSDL members discussion list To unsubscribe, please send a message with the command "unsubscribe" to dsdl-discuss-request@dsdl.org (mailto:dsdl-discuss-request@dsdl.org?Subject=unsubscribe)
This archive was generated by hypermail 2.1.8 : Thu Aug 03 2006 - 06:33:02 UTC