[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Hi,
trying to work out how to 'construct' a URI for use in a document() call.
I want to, at an apprriate point in a stylesheet, say
<xsl:apply-templates select="document('http://abc.com/returnxmldoc.asp?id=' + @id)/info" />
but constructing it just seems neater than having the same URL root embedded as an attribute on each <section> element.
Problem is that I can't find anything on how I should concatenate a literal string with appropriate attribute value(s) within, or to pass to, the document() function.
Any ideas?
Thanks
Jon
_________________________________________________________________
Sign-up for a FREE BT Broadband connection today! http://www.msn.co.uk/specials/btbroadband
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
[xsl] constructing URI for document() function
Subject: [xsl] constructing URI for document() function From: "Jon Myers" <jon_b_myers2@xxxxxxxxxxx> Date: Thu, 14 Aug 2003 07:47:36 +0000 |
Hi,
trying to work out how to 'construct' a URI for use in a document() call.
given an xml doc including something like.. <section id="5"?>
I want to, at an apprriate point in a stylesheet, say
<xsl:apply-templates select="document('http://abc.com/returnxmldoc.asp?id=' + @id)/info" />
where http://abc.com/returnxmldoc.asp returns an xml doc such as <info>blah blah blah</info> with info specific to query string paramater passed
I can create an attribute with the full URL, including parameters... eg <section id="5" ref="http://abc.com/returnxmldoc.asp?id=5" />
and then simply use... <xsl:apply-templates select="document(@ref)/info" />
but constructing it just seems neater than having the same URL root embedded as an attribute on each <section> element.
Problem is that I can't find anything on how I should concatenate a literal string with appropriate attribute value(s) within, or to pass to, the document() function.
Any ideas?
Thanks
Jon
_________________________________________________________________
Sign-up for a FREE BT Broadband connection today! http://www.msn.co.uk/specials/btbroadband
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] How to "copy" a DTD refer, David . Pawson | Thread | Re: [xsl] constructing URI for docu, David Carlisle |
RE: [xsl] How to "copy" a DTD refer, David . Pawson | Date | RE: [xsl] Assigning unique id to ne, Michael Kay |
Month |
Keywords