xsl-list
[Top] [All Lists]

Re: [xsl] How to avoid adding defaulted attributes

2014-01-10 02:22:10
Capture the main output in a variable and apply a template rule to it
that gets rid of the attributes you want removed.

I think they call this micro pipelining.

On Fri, Jan 10, 2014 at 12:53 AM, Mark Giffin <m1879(_at_)earthlink(_dot_)net> 
wrote:
I am running an identity transform on some files and changing a few things as 
they pass through. They are DITA XML files and their DTDs have defaulted 
attributes that do not appear in the instance files. But during the transform 
the defaulted attributes are added in on elements that I do not explicitly 
handle with XSLT templates. I can stop this behavior by commenting out the 
doctypes, but is there a way to do this with some setting? I'm using Saxon PE 
9.4.0.6.

Thanks,
Mark

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--