Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Getting Namespaces into a Transform >Thread Next - Re: How to reference a value in the xml instance document from schema? RE: Getting Namespaces into a TransformTo: <xmlschema-dev@--.---> Date: 11/16/2004 12:09:00 AM >If you put exactly that in your stylesheet, then you should get exactly that >in your result tree. My first thought was, "Wow, am I stupid for missing the obvious!" (This is undoubtedly still true.) But when I looked at the transform file I'm still mystified. I'm putting in all the elements programatically: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="root"> <xsl:element name="root"> <xsl:attribute name="pageSizeUnits"><xsl:value-of select="@pageSizeUnits"/></xsl:attribute> <xsl:attribute name="dayBreakPosition"><xsl:value-of select="@dayBreakPosition"/></xsl:attribute> So there are several attributes to the root besides the namespace declaration. Since I declare the root element programatically, what do I need to do to stick literals in there? Thanks again for putting up with the inexperience. Jim Stanley Media Services, Inc. From jeni@j... Tue Nov 16 17:04:02 2004 Re | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
