Closed ebeshero closed 9 years ago
There's a more permanent way to set this in oXygen (I think)--I need to check this when I am at my computer.
Here is the way that has worked for me on my installation of oXygen, to ensure that unwanted attributes are not applied during an XSLT transformation using the Saxon parsers.
For me, this has worked to stop the "attribute defaults" from being applied in all of my XSLT transformations, and I have not needed to change the setting--even with upgrading to a new version of oXygen recently. @HelenaSabel: let me know if this works!
By the way, to ping people, try using the @ symbol and start typing one of our names. @setriplette @HelenaSabel
Thank you so much, @ebeshero, that was exactly what I failed to find!
@HelenaSabel Make sure it stays set, after you close and reopen oXygen, and run a new transformation.
Yes, it does! You've boosted my effectiveness ;)
Huzzah! :-)
XSLT transformations can generate unwanted attributes on your elements, such as @default="false" or @N="part". These are actually valid in TEI, but meaningless to us and we don't want them. We stop XSLT from generating these attributes by changing an XSLT processing setting on the Saxon parsers we are using:
A short-term fix: In the XSLT debugger view of oXygen, click on the blue gear next to the Saxon version menu to open the "Advanced options" window. Under "Saxon -HE/PE/EE options", uncheck "Expand attributes default ('-expand')"
Remember, when running XSLT on TEI files, we always want to use one of the Saxon parsers, preferably Saxon PE or EE.