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

RE: multi-document question

Subject: RE: multi-document question
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Sun, 23 Nov 2003 19:59:33 +0100
exsl document usage
> -----Original Message-----
> From: Bruce D'Arcus
>
> With this, then:
>
>     <xsl:template match="mods">
>          <exsl:document href="{@id}.mods" method="xml">
>          <xsl:copy>
>                  <xsl:copy-of select="." />
>          </xsl:copy>
>          </exsl:document>
>     </xsl:template>
>

Try removing the surrounding <xsl:copy ...>, optionally replace it with:

<xsl:element name="modsCollection">
  <xsl:copy-of select="." />
</xsl:element>

> Finally, I should probably tackle is this:
>
> I am using some identifier to name the individual files.  In this case
> it is the id on the mods element. In other cases, it will be another
> element within mods called identifier with a type attribute value of
> citekey.  In still other cases, this identifier may be missing
> altogether and I'd want to construct by perhaps selecting the first
> author family name and the year.
>
> If I want to do this, what is the best strategy?
>

Depends... In the 'other cases', is the id attribute going to be absent (or
have a special value)?
In that case, certainly look around for the usage of
<xsl:choose>
  <xsl:when />
  <xsl:otherwise />
</xsl:choose>

You can use this inside the template you already have.

Cheers,

Andreas


 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.