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

XSLT 2.0 - finding nodes that do not have a match rule

Subject: XSLT 2.0 - finding nodes that do not have a match rule?
From: Nadia.Swaby@xxxxxx
Date: Fri, 20 May 2005 14:25:18 -0400
xslt match not
Hello All

I am working on a little experiment to try and convert XML documents
generated from Framemaker documents into XML documents that conform to our
DTD.  When you save a Frame document to XML, it generates the tags based on
the paragraph format that is applied to the text in Frame.  All our
Framemaker documents use templates, but authors can (and do) create new
paragraph formats, if required.

What I would like to do is place any content that does not have a standard
format applied to it in its own section.  From there, the author can
rearrange the it to fit in the proper place using XMetal.

For example:
XML Generated by Frame
<XML>
   <!--standard tags with xsl:template match rules-->
    <TITLE/>
    <Heading-1>
        <A ID="pgfId-1009125"/> CASINGS</Heading-1>
    <Body>
        <A ID="pgfId-1009975"/>  Designer's responsibility</Body>
    <Alpha-FirstList>
        <Alpha-First>
            <A ID="pgfId-1009976"/>  the vertical is
required.</Alpha-First>
        <Alpha-Next>
            <A ID="pgfId-1009987"/> An adequate margin be allowed for
vibratory stress.</Alpha-Next>
        <Alpha-Next>
            <A ID="pgfId-1009988"/> problems as:</Alpha-Next>
        <Numbered-First>
            <A ID="pgfId-1009989"/> s been understood.</Numbered-First>
        <Numbered-Next>
            <A ID="pgfId-1009990"/> "should be avoided.</Numbered-Next>
        <Alpha-Next>
            <A ID="pgfId-1009991"/> these situations.</Alpha-Next>
        <Alpha-Next>
            <A ID="pgfId-1009992"/>
            structural redundancy.</Alpha-Next>
        <Alpha-Next>
            <A ID="pgfId-1009993"/>  the engine.</Alpha-Next>
        <Alpha-Next>
            <A ID="pgfId-1010011"/> F bleed slots.</Alpha-Next>
    </Alpha-FirstList>
    <!--the dreaded non-standard tags that will not always have the same
name-->
    <usertag>I am not standard!</usertag>
     <metoo>I am not standard either!</metoo>
  </XML>

How to I create a match rule for the tags that are not standard?

The only  way I can see of doing it is to create a template element as
follows:
<xsl:template match="not(Alpha-Next | XML | Heading-1..etc...)">

Any ideas would be greatly appreciated.

TIA

Nadia

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.