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

RE: How to select a document element from the input xm

Subject: RE: How to select a document element from the input xml fileusing xslt?
From: "Belkin, Alla" <abelkin@xxxxxxxxxxx>
Date: Mon, 12 Jul 2004 15:51:01 -0500
debug belkin
When I implemented it this way:

<?xml version="1.0" encoding="UTF-8" ?>
<stylesheet xmlns="http://www.w3.org/1999/XSL/Transform"  version="1.0"
xmlns:xsl="dummy">
  	<namespace-alias stylesheet-prefix="xsl" result-prefix=""/>

....
And then debug, I got an "unexpected value" error at the line
<namespace-alias stylesheet-prefix="xsl" result-prefix=""/>

What is wrong?

Thank you,

Alla Belkin
abelkin@xxxxxxxxxxx


-----Original Message-----
From: George Cristian Bina [mailto:george@xxxxxxx]
Sent: Monday, July 12, 2004 2:32 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  How to select a document element from the input xml
fileusing xslt?

> The way to accomplish what you are
> trying to do is to use the <xsl:element name="xsl:output"> and then
add
the
> necessary attributes using <xsl:attribute
name="method">xml</xsl:attribute> etc...

To easily generate XSLT code you can use the namespace-alias in your
first
stylesheet like below:

<?xml version="1.0" encoding="UTF-8" ?>
<stylesheet xmlns="http://www.w3.org/1999/XSL/Transform"  version="1.0"
xmlns:xsl="dummy">
  <namespace-alias stylesheet-prefix="xsl" result-prefix=""/>
  <template match="/">
    <xsl:stylesheet version="1.0">
      <choose>
        <when test="count(//Delete)  &gt; 0">
          <xsl:output method="xml" doctype-system="http://delete.dtd"/>
        </when>
        <when test="count(//Delete) = 0">
          <xsl:output method="xml" doctype-system="http://update.dtd"/>
        </when>
      </choose>

      <!-- the rest of your stylesheet here... -->
      <xsl:template match="/">

      </xsl:template>

    </xsl:stylesheet>
  </template>
</stylesheet>

Best Regards,
George
-------------------------------------------------------
George Cristian Bina mailto:george@xxxxxxxxxxxxx
<oXygen/> XML Editor and XSLT Editor/Debugger
http://www.oxygenxml.com/

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.