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

Re:xsl:text output literal text

Subject: Re:xsl:text output literal text
From: Rhonda Fischer <rhonda@xxxxxxxxxxxxxx>
Date: Mon, 05 Jun 2000 07:18:08 +0000
xsl output literal
>Need to understand what you are trying to achieve!
>
>Mike Kay


Howdy Mike,

Thank you for your reply. I am attempting to
perform xsl conditional statements to determine
text that appears and variable substitution.
Therefore I have put my entire source document
in an xsl template matching on root (ProjectPlan).
An example follows. The error message I receive
is 'null'.

definition.xml
-----------

<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<!DOCTYPE ProjectPlan [
        <!-- Here-in lies the DTD -->
]>

<ProjectPlan>
     <Variable>
            <Entry name='Client.Fullname'>Special Client Pty Ltd</Entry>

            <Entry name='Date.DeliveryWeeks' value='12'/>
     </Variable>
 </ProjectPlan>


master.xsl
--------

<?xml version="1.0"?>
<!DOCTYPE xsl:stylesheet>
<xsl:stylesheet
          xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
          version="1.0">
<xsl:output method="xml"/>

<xsl:template match='/'>

    <Template>
         <Content>
                <Section>
                      <SectionHeading>News</SectionHeading>
                             <Section>
                                   <SectionHeading>News
Details</SectionHeading>
                                         <xsl:if
test='ProjectPlan/Variable/Entry[

@name="Date.DeliveryWeeks"]/@value > 10'>
                                              <para> A block of text
</para>
                                          </xsl:if>
                                          <para>
                                              Our customer <xsl:copy-of
select='ProjectPlan/Variable

/Entry[@name="Client.Fullname"]/node()'/> some
                                               more text.
                                          </para>
                               </Section>
                   </Section>
              </Content>
       </Template>

</xsl:template>


command line:
-----------

java com.icl.saxon.StyleSheet definition.xml master.xsl > newMaster.xml

I then intend to continue to apply further xsl template matches on the
newMaster.xml document to determine further formatting.

Any suggestions is very much appreciated.

Kind Regards
Rhonda


 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.