[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: What's the correct DTD for XSL?
> That raises the question: what is the correct DTD for XSL? Would it explicitly > include all the attributes of an <fo:block> in an <fo:inline-sequence> (plus a > great multitude of similarly situated attributes)? Or is the question of > validating an XSLT stylesheet as an XML document simply uninteresting to most > members of this community? It is unclear to me whether you are asking for a DTD for an XSL stylesheet or a DTD for a serialisation of a result tree in the XSL FO vocabulary. They are quite different things. The DTD for an XSL stylesheet is completely dependent on the result tree vocabulary. A stylesheet that results in XHTML would have one DTD, a stylesheet that results in FOs would have another DTD, a stylesheet that results in FOs with diagrams in SVG would have yet another DTD. The DTD for a FO result tree is less useful because you wouldn't normally serialise the result tree. Your transformation engine would just give the result tree to the formatter without serialising and having the formatter have to reparse. In your specific example above, no, you wouldn't put all the attributes of block on inline-sequence (eg space-before). What you would do is include every single inheritable attribute on every single formatting object that can be an ancestor of a formatting object that uses it. James XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|