RE: [xsl] not getting expected matches

Subject: RE: [xsl] not getting expected matches
From: "Crouch, Luke H." <Luke.Crouch@xxxxxxxxxxx>
Date: Thu, 16 Sep 2004 14:46:18 -0500
yeah, believe me, it's not my idea to have those huge complicated element
names with the identifiers included in the tag name. we have another developer
here who has been in EDI-world for way too long. so they put a bunch of work
into making a schema for our EDI transactions and that's what we ended up
with. but anyway, the code works great, as usual!

you da man.

-L

> -----Original Message-----
> From: Wendell Piez [mailto:wapiez@xxxxxxxxxxxxxxxx]
> Sent: Thursday, September 16, 2004 2:16 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE: [xsl] not getting expected matches
>
>
> At 02:48 PM 9/16/2004, I wrote:
> >>        <xsl:template match="*[starts-with(local-name(), 'ELE')]">
> >>                 <xsl:value-of select="."/><xsl:text>*</xsl:text>
> >>                 <!-- put a line break after last 'ELE' element -->
> >>                 <xsl:if test="">
> >>                         <xsl:text>
> >></xsl:text>
> >>                 </xsl:if>
> >>         </xsl:template>
> >></xsl:stylesheet>
> >>
> >>but I don't know how to format the xsl:if test to check to
> see if this
> >>ELE tag is the last ELE tag under the SEG tag...how would I do that?
> >
> ><xsl:if test="not(following-sibling::rm:ELE)">...</xsl:if>
>
> ... and then realize they're not plain ELE elements, but ELExxx.
>
> That's a bit trickier:
>
> test="not(following-sibling::*[starts-with(local-name(), 'ELE')])"
>
> ... yet another reason why it's so much nicer to have
>
> <ELE n="xxx">
>
> than
>
> <ELExxx>
>
> (Personally I can't abide name-munging and name tests, avoiding them
> wherever possible: the language should be doing them for me.)
>
> 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
> ======================================================================
>
>
> --+------------------------------------------------------------------
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
> or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>
> --+--

Current Thread