Re: [xsl] XDQL query

Subject: Re: [xsl] XDQL query
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 17 Mar 2005 15:52:07 -0500
Hi Tiffany,

At 02:14 PM 3/17/2005, you wrote:
all our stylesheets build <meta> tags as follows:

        <xsl:text disable-output-escaping="yes">
                &lt;meta name="keywords" content="</xsl:text>
        <xsl:value-of select="search_keywords"/>
        <xsl:text disable-output-escaping="yes">"&gt;</xsl:text>

now i need to invoke an XSLT processor to create an XDQL query to build a 2nd <meta> tag:

<xsl:text disable-output-escaping="yes">
&lt;meta name="Description" content="</xsl:text>
<xsl:value-of select="xalan-nodeset:nodeset($query1_results)/root/object/description"/>
<xsl:text disable-output-escaping="yes">"&gt;</xsl:text>


my stylesheet is valid, but can't generate a webpage - any ideas??

Without more info, no, but I can say offhand that this method of getting a meta tag is more troublesome than the more XSL-idiomatic:


<meta name="keywords" content="{search_keywords}"/>

or

<meta name="keywords"
 content="{xalan-nodeset:nodeset($query1_results)/root/object/description}"/>

I can't say for sure whether the "tag-writing" d-o-e based approach above is the source of your difficulty. But it can't help. Creating honest nodes (not writing tagging for them) with Attribute value templates (the things in curly braces) is much easier all around.

Can you be more specific about "can't generate a webpage?" Using which tools? Reporting an error, creating bad output? or just quietly refusing to do what's asked, or something else? What processor are you using, and have you tried a different one to help isolate the problem?

Cheers,
Wendell



======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================

Current Thread