[Top] [All Lists]

[xsl] stop the processing of default attributes?

2011-08-18 17:22:37
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 


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.


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>

<Prev in Thread] Current Thread [Next in Thread>