xsl-list
[Top] [All Lists]

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

2005-05-20 11:25:18
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



--~------------------------------------------------------------------
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>