[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] stop the processing of default attributes?
I think I know the answer to this question, but would like to see if I mssied something. I;m using the following template in my conversion effort. This si teh default handling for any element that I don't have something specific to do on it: <xsl:template match="*"> <xsl:element name="{name()}"> <xsl:for-each select="@*"> <xsl:attribute name="{name(.)}"><xsl:value-of select="."/></xsl:attribute> </xsl:for-each> <xsl:apply-templates/> </xsl:element> </xsl:template> This works great except for places where the element has some default value in the schema. So instead of getting <refdm> as output, I get: <refdm show="replace" type="simple" actuate="onRequest"> The attributes come from the xlink schema and don't appear in the source file. Not sure if this is really a problem, but I would like to get my output to be as close the source as possible, just in case someone runs a diff on the files and asks why. As this is a conversion moving from SGML to XML, I have some options when I introduce the link to the schema file. I'm thinking that removing that link until after this step is going to be the easiest way to stop this. ..dan
|
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
|