|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: ?<xsl:apply-templates select="tag"/>?
Try
<xsl:stylesheet xmlns:xsl='http://www.w3.org/TR/WD-xsl'>
<xsl:template>
<xsl:value-of />
</xsl:template>
<xsl:template match = "/">
<HTML>
<xsl:apply-templates select = "bioghist/tag" />
</HTML>
</xsl:template>
<xsl:template match = "tag">
<P><xsl:apply-templates /></P>
</xsl:template>
</xsl:stylesheet>
Note: IE5 does not support process-children. It uses the newer
xsl:apply-templates keyword.
> -----Original Message-----
> From: Stephen Yearl [SMTP:stephen_yearl@xxxxxxx]
> Sent: Tuesday, February 09, 1999 9:32 AM
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: ?<xsl:apply-templates select="tag"/>?
>
> Hi all,
>
> Whilst <xsl:apply-templates select="tag"/> works in XT, it seems not to
> with the
> processor in IE5.0. The simple problem I'm trying to overcome is the
> rendering
> in HTML of multiple sub-elements of an element.
>
> From the XML <bioghist><tag>...</tag><tag>...</tag></bioghist> I should
> like the
> HTML <P>...</P><P>...</P>.
>
> Under XT I can achieve this by creating a template-match for tag, and
> referencing that template with <xsl:apply-templates select="tag"/>, but
> since
> this does not work in IE5.0, I've tried other alternatives, none of which
> work:
>
> 1. <xsl:value-of /> returns all of the <tag>s in an unformatted block
> 2. <xsl:value-of select="tag"/> returns only the first ocurence of <tag>
> 3. <xsl:apply-templates/> dosen't recognize the template-match created for
> tag
> and
> 4. *Wherever* I place process-children or process-select with a for-each
> statement I get the following error: "Keyword xsl:process-children may not
> be
> used here".
>
> Surely, there's something I'm missing here?
>
>
> --
> Stephen Yearl, Project Archivist
> stephen_yearl@xxxxxxx
> *****************************
> Connecticut Historical Society
> *****************************
> 1 Elizabeth Street
> Hartford, CT 06105
> (860) 236-5621
> http://www.chs.org
> *****************************
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
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








