|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Process some elements, but not others...
Hi Mike,
Thanks for the reply. I'm still new at XSLT so I'm not sure I fully understand the concept presented, but I tried it, to the best of my ability, and it didn't work. I think it's time to come forth and just be honest... I'm trying to lend a hand on the htdig project (http://www.htdig.org/). They have a document called defaults.xml which contains the default values for the configuration attributes. I've documented what I'm working on here: http://www.tedmasterweb.com/htdig/ I've tried a variety of variations on the procedure you suggest, but it just doesn't seem to work, so, I'm reposting the question with a little better example... Sample XML <HtdigAttributes> <attribute name="accents_db" type="string_list" programs="htdig"> <example>search_algorithm, search_results_header</example> <description> <p>bla bla bla bla bla bla <strong>bla bla</strong> bla bla bla <em>bla</em></p> <p>bla bla <ref>bla</ref> bla, bla!</p> </description> </attribute> </HtdigAttributes> Sample XSL <xsl:output method="xml" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C/DTD XHTML 1.0 Transitional//EN" indent="yes" encoding="ISO-8859-1" /> <xsl:template match="/">
<xsl:apply-templates />
</xsl:template><xsl:template match="HtdigAttributes">
<xsl:apply-templates select="attribute" />
</xsl:template><xsl:template match="attribute"> <!-- we do a bunch of fun transofrmations here --> <xsl:value-of select="@name" /> <xsl:value-of select="@type" /> <!-- would like to have the value of the description node here, but with all HTML elements left in tact and all "ref" elements transformed --> </xsl:template> Any suggestions on changes that would make your suggestion work in this context? Thanks again! Ted On Thursday, February 13, 2003, at 09:25 PM, Mike Brown wrote: Ted Stresen-Reuter wrote:I have an xml document whose elements contain html as in the following example: XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








