[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

stop the processing of default attributes?

Subject: stop the processing of default attributes?
From: dvint@xxxxxxxxx
Date: Thu, 18 Aug 2011 15:22:20 -0700
 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>


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.


Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.