|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: overriding <xsl:output> attributes
At 2010-07-08 16:34 -0700, Lynn Murdock wrote:
i have a document A that imports document B. Yes, the *attributes* are overridden, not the entire instruction. i have tried adding a name attribute to the importing statement, to try to create a new output definition, with no success. i have also tried using doctype-public="" and doctype-system="" in the importing document, but these simply output a doctype statement with a "" value. No. I can't think of any way. But I can give you an "ineffectual" declaration so that you produce a DOCTYPE but it doesn't add anything to your document: This works in DOS: <!DOCTYPE abc PUBLIC "" "nul" [ <!ELEMENT abc EMPTY> ]> <abc/> This works in Unix: <!DOCTYPE abc PUBLIC "" "/dev/null" [ <!ELEMENT abc EMPTY> ]> <abc/> So you just need doctype-public="" and doctype-system="/dev/null" or "nul". i'm using saxon 8.7, and xsl 2.0. This is along the same lines as being able to add attributes to an element in the result tree, but not remove them. I hope this helps but I realize it doesn't get you your desired result of omitting the declarations ... nevertheless the declarations above will give you the same effect as if not having them. Unfortunately it isn't portable. If you need a portable solution, then create an empty file in your system and point to it using the doctype-system. . . . . . . . . . . Ken -- XSLT/XQuery training: after http://XMLPrague.cz 2011-03-28/04-01 Vote for your XML training: http://www.CraneSoftwrights.com/s/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|
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
|

Cart








