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

updated namespace difficulty

Subject: updated namespace difficulty
From: S Woodside <sbwoodside@xxxxxxxxx>
Date: Sat, 15 Feb 2003 18:14:07 -0500
 updated namespace difficulty
I'm using xsltproc.

The input contains lots of data, and the first xslt contains this:

<xsl:template match="text">
<xsl:element name="form_textarea" namespace="mynms"><b>foobar</b></xsl:element>
</xsl:template>


the output of the 1st transform contains lots of stuff, including
            <form_textarea xmlns="mynms"><b>foobar</b></form_textarea>

the second xslt is this (complete):
<?xml version="1.0"?>
<xsl:stylesheet
  xmlns="foo"
  xmlns:my="mynms"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  version="1.0"
  >
  <xsl:template match="my:form_textarea" priority="1">
    <b>SIMONHELLO</b>
  </xsl:template>
<!--
  [[xsl:template match="*" priority="-1"]]
    [[xsl:copy-of select="."/]]
  [[/xsl:template]]
-->
</xsl:stylesheet>

As is, it gives me this in the output, among other things:
<b xmlns="foo" xmlns:my="mynms">SIMONHELLO</b>
which is AFAICT correct. However I also want to copy through the rest of the output from the 1st transform! How do I do that? If I uncomment the 2nd template in the 2nd xslt, instead I get:
<form_textarea xmlns="mynms"><b>foobar</b></form_textarea>



Help is much appreciated. I have hopes to simplify my handling of multiple transformations using namespaces.


simon


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.