[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Naming a new XML file from XSL
On 4/28/06, Gary E. Daniels <gdaniels@xxxxxxxxxxx> wrote:
Hi. How do I code an XSL Stylesheet to insert an XML file name with beginning and end tags into the resulting transform to an XML file?
I need to have XSL-A insert <XML-B> and </XML-B> tags properly into XML-B for its file name. The file name for XML-B will always be the same (i.e. results, output, etc.).
This is also a little confusing. So you manually add the tags to the result file, but then run yet another stylesheet on that? Still, like before, just do params. in xsltproc something like: xsltproc XSLA.xsl XMLA.xml --param name XMLB.xml > XMLB.xml and do a global param <xsl:param name="name" select="defaultFileName" /> and in the appropriate template <xsl:element name="$name"> ....do some stuff </xsl:element> Although I'd say again this all sounds rather strange. Jon Gorman
|
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
|